Mapping - Error msg
#1

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

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

Yes, I do have it on my top.
Reply
#4

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

public OnGameModeInit()
Reply
#6

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

thank you
Reply
#8

Your welcome
Reply
#9

Under OnPlayerConnect
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)