SA-MP Forums Archive
SetPlayerWorldBounds - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetPlayerWorldBounds (/showthread.php?tid=255327)



SetPlayerWorldBounds - PhantomDot1 - 15.05.2011

i am making an epic gangwar, and i wanted to set the worldbounds like this:

SetPlayerWorldBounds(playerid, 2927.337, 1923.388, -1054.171, -1942.413);

but when i try to compile this i get this error:

\gamemodes\Gang_Zones.pwn(42) : error 017: undefined symbol "playerid"

can anybody please help ?


Re: SetPlayerWorldBounds - xDeadlyBoy - 15.05.2011

well, it says that the varriable 'playerid' doesn't exist in the current callback you used.
where you've put it?


Re: SetPlayerWorldBounds - PhantomDot1 - 15.05.2011

under OnGameModeInit()


Re: SetPlayerWorldBounds - PhantomDot1 - 15.05.2011

ive fixed it, placing it under OnPlayerSpawn fixed it