SA-MP Forums Archive
Need help !! - 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: Need help !! (/showthread.php?tid=436624)



Need help !! - ReiZ - 12.05.2013

got an error

Код:
C:\Users\Wiingee\Desktop\Raven's Roleplay 0.3x\gamemodes\stimulusrp.pwn(21528) : error 017: undefined symbol "playerid"
line 21528:
Код:
RemoveBuildingForPlayer(playerid, 1266, 1538.5234, -1609.8047, 19.8438, 0.25);
Im using a ravens rp script


Re: Need help !! - Kwarde - 12.05.2013

Where'd you put this? Because appearantly, you put this ins a callback (or function) where playerid is not defined.


Re: Need help !! - ReiZ - 12.05.2013

I put it ontop of createdynamicobject, why where should i put it?


Re: Need help !! - Kwarde - 12.05.2013

Put it either in OnPlayerConnect, or in OnPlayerSpawn (both'll work, I always put them in OnPlayerSpawn).
pawn Код:
public OnPlayerSpawn(playerid)
{
    RemoveBuildingForPlayer(playerid, 1266, 1538.5234, -1609.8047, 19.8438, 0.25);
    return 1;
}
Though it's unneeded in OnPlayerSpawn (it gets called all the time). You'd best put it in OnPlayerConnect


Re: Need help !! - ReiZ - 12.05.2013

Thankyou!!!!


Re: Need help !! - Kwarde - 12.05.2013

You're welcome!