World boundaries - help!
#1

Код:
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?
Reply
#2

Where did you put the SetPlayerWorldBounds in?
Reply
#3

Where do you put this function? In what public?
Reply
#4

Normally you have to put it in OnPlayerSpawn?
Reply
#5

I've put it in public IngameModeInit
Reply
#6

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?
Reply
#7

Just put it in a public function that contains playerid.
Reply
#8

Works. Fixed. Thanks.
Reply
#9

He don't know playerid since OnGameModeInit don't have the playerid. OnPlayerConnect or OnPlayerSpawn does it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)