SA-MP Forums Archive
Hmm how? - 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: Hmm how? (/showthread.php?tid=267545)



Hmm how? - ServerRestart - 08.07.2011

C:\Documents and Settings\Dean\Desktop\Other servers\gamemodes\NitrosFreeroam.pwn(6061) : warning 235: public function lacks forward declaration (symbol "PirateShipScoreUpdate")

The Code
----------------------------------------------------------
(6061)public PirateShipScoreUpdate()
{

tmps1 = dini_Get(FILE_SETTINGS, "pirateship");
if (strval(tmps1) == 0) return 0;

for(new i=0; i<MAX_PLAYERS; i++)
{
// TO-DO moneyscanner update
PayPlayerInArea(i, 1995.5, 1518.0, 2006.0, 1569.0, 100);
}

return 1;
----------------------------------------------------------

Why is it getting the error?


Re: Hmm how? - ServerRestart - 08.07.2011

Anyone?


Re: Hmm how? - PrawkC - 08.07.2011

you need to add
pawn Код:
forward PirateShipScoreUpdate();



Re: Hmm how? - BigETI - 08.07.2011

pawn Код:
forward PirateShipScoreUpdate();



Re: Hmm how? - ServerRestart - 08.07.2011

Thanks guys