SA-MP Forums Archive
undefined symbol playerid -_- - 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: undefined symbol playerid -_- (/showthread.php?tid=337051)



undefined symbol playerid -_- - BleverCastard - 24.04.2012

It says playerid is undefined on this line:
Код:
SetPlayerMapIcon(playerid, 0, 2393.2886, 2042.5250, 10.8203, 14, 0, MAPICON_GLOBAL);



Re: undefined symbol playerid -_- - tiernantheman - 24.04.2012

Under OnPlayerConnect

pawn Код:
SetPlayerMapIcon(playerid, 14, 2393.2886, 2042.5250, 10.8203, 14, 0,  MAPICON_GLOBAL );



Re: undefined symbol playerid -_- - BleverCastard - 24.04.2012

it is there?:/


Re: undefined symbol playerid -_- - .FuneraL. - 24.04.2012

This function only works on publics containing playerid, such as OnPlayerConnect, OnPlayerSpawn etc ...


Re: undefined symbol playerid -_- - tiernantheman - 24.04.2012

Make sure to add the one I gave you as after playerid, 14 <--- that has to be the same as the 14 near the end or else it will show up as a white box