SA-MP Forums Archive
Two errors :S - 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: Two errors :S (/showthread.php?tid=86425)



Two errors :S - Devine - 14.07.2009

I keep getting these errors:

C:\Users\Owner\Desktop\New Folder\gamemodes\Alliance.pwn(8427) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Owner\Desktop\New Folder\gamemodes\Alliance.pwn(8427) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

And this is the line:
pawn Код:
RemovePlayerMapIcon (playerid, 36);
Thank you if you can help me.


Re: Two errors :S - Allu - 14.07.2009

error 017= write this to other new's.
pawn Код:
new playerid;



Re: Two errors :S - CJ101 - 14.07.2009

where is this code? under what public?


Re: Two errors :S - Devine - 14.07.2009

OnGameModeInit


Re: Two errors :S - Calgon - 14.07.2009

OnGameModeInit should never ever have playerid, as it's initiating the gamemode, check the SA:MP wiki to verify the usage of certain callbacks.

https://sampwiki.blast.hk/wiki/OnGameModeInit

Clearly states that it has no parameters (This callback has no parameters). It is intended for initiating the game mode.


Re: Two errors :S - Devine - 14.07.2009

So where do you think I should put it? or should I change it?