Saving SetPlayerMapIcon - 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)
+--- Thread: Saving SetPlayerMapIcon (
/showthread.php?tid=483883)
Saving SetPlayerMapIcon -
LMagnifico - 28.12.2013
i need a help from you guys i get an error when i save this:
SetPlayerMapIcon(playerid, 46, 1461.68, -1010.27, 26.84, 52, 0); //
Error: undefined symbol ''playerid''
i put it on OnGameModeInit section or im wrong? where should i put it? how?
Re: Saving SetPlayerMapIcon -
pyrodojo25 - 28.12.2013
Put it in OnPlayerConnect
Re: Saving SetPlayerMapIcon -
newbie scripter - 28.12.2013
u should put things with playerid in OnGamemodeInit. Because OnGamemodeInit doesnt have any parameter to get player id . that callback is called when u open server.exe (which doesn't deal with playerid).
put it under OnPlayerConnect
Re: Saving SetPlayerMapIcon -
LMagnifico - 28.12.2013
that explains alot.. thank you