World boundaries - 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: World boundaries - help! (
/showthread.php?tid=287867)
World boundaries - help! -
Alphos - 05.10.2011
Код:
SetPlayerWorldBounds(playerid, -11.67788, -1868.46, 2697.589, 1903.494);
What's wrong about this format? Everytime I try to compile the script, it says that he doesn't recognize 'playerid'. Why not?
Re: World boundaries - help! -
[GOD]Dragonster82 - 05.10.2011
Where did you put the SetPlayerWorldBounds in?
Re: World boundaries - help! -
KaleOtter - 05.10.2011
Where do you put this function? In what public?
Re: World boundaries - help! -
Michael@Belgium - 05.10.2011
Normally you have to put it in OnPlayerSpawn?
Re: World boundaries - help! -
Alphos - 05.10.2011
I've put it in public IngameModeInit
Re: World boundaries - help! -
Michael@Belgium - 05.10.2011
Quote:
Originally Posted by Alphos
I've put it in public IngameModeInit
|
Nope :
Quote:
Originally Posted by Michael@Belgium
Normally you have to put it in OnPlayerSpawn?
|
Re: World boundaries - help! -
KaleOtter - 05.10.2011
Just put it in a public function that contains playerid.
Re: World boundaries - help! -
Alphos - 05.10.2011
Works. Fixed. Thanks.
Re: World boundaries - help! -
Kingunit - 05.10.2011
He don't know playerid since OnGameModeInit don't have the playerid. OnPlayerConnect or OnPlayerSpawn does it.