SA-MP Forums Archive
Old Warning (Want it fixed) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Old Warning (Want it fixed) (/showthread.php?tid=162136)



Old Warning (Want it fixed) - Rolyy - 22.07.2010

I have had always this small warning for a long time already which I could never figure out how to fix this..
I want this warning getting fixed because I am currently working on ...

Код:
C:\Users\***\Desktop\***\filterscripts\ladmin4v2.pwn(1074) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Код:
1073: //==============================================================================
1074: public OnPlayerPrivmsg(playerid, recieverid, text[])
1075: {
1076: 	if(ServerInfo[.....



Re: Old Warning (Want it fixed) - Calgon - 22.07.2010

Either use

Код:
forward public OnPlayerPrivmsg(playerid, recieverid, text[]);
Or remove the function.

The PM function was removed in 0.3, you can either create a PM command yourself (with this function if you wish to), or delete it.