SA-MP Forums Archive
Mapping - Error msg - 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: Mapping - Error msg (/showthread.php?tid=377901)



Mapping - Error msg - MrBorsh - 15.09.2012

pawn Код:
RemoveBuildingForPlayer(playerid, 4009, 1421.3750, -1477.6016, 42.2031, 0.25);
Error message:
Код:
.pwn(576) : error 017: undefined symbol "playerid"



Re: Mapping - Error msg - gtakillerIV - 15.09.2012

Make sure you have at the top of your script #include <a_samp> .


Re: Mapping - Error msg - MrBorsh - 15.09.2012

Yes, I do have it on my top.


Re: Mapping - Error msg - gtakillerIV - 15.09.2012

Alright where did you add "RemoveBuildingForPlayer(playerid, 4009, 1421.3750, -1477.6016, 42.2031, 0.25);" Where in the script?


Re: Mapping - Error msg - MrBorsh - 15.09.2012

public OnGameModeInit()


Re: Mapping - Error msg - gtakillerIV - 15.09.2012

Tested it out and yea I got the same error, fixed it by adding it under Public OnPlayerSpawn.


Re: Mapping - Error msg - MrBorsh - 15.09.2012

thank you


Re: Mapping - Error msg - gtakillerIV - 15.09.2012

Your welcome


Re: Mapping - Error msg - C00K13M0N$73R - 15.09.2012

Under OnPlayerConnect


Re: Mapping - Error msg - gtakillerIV - 15.09.2012

Yes, that will work too. I would use OnPlayerConnect if I made the class selection area in the place where the building that we want to remove will get removed.