world boundries
#1

i want to make world boundries for a dm arena this is the code : SetPlayerWorldBounds(playerid, -1486,952, -1579,656, 388,9236, 313,9693);
But where i put it? if i put it in InGameModeInit i am getting a error (430) : error 017: undefined symbol "playerid"
Reply
#2

emm i am not sure where to put it, but you can do like this:

for (new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerWorldBounds(i, -1486,952, -1579,656, 388,9236, 313,9693);
}


put it in gamemode init.. and try

Reply
#3

Getting 4 errors
Код:
(432) : warning 202: number of arguments does not match definition
these are 4 errors all same
Reply
#4

pawn Код:
SetPlayerWorldBounds(i, -1486.952, -1579.656, 388.9236, 313.9693);
Reply
#5

(431) : error 017: undefined symbol "i"
Reply
#6

where are you putting this? If under a callback, replace 'i' with 'playerid'.
Reply
#7

maybe change code to AddPlayerBounds? i dunno
Reply
#8

Quote:
Originally Posted by laser50
maybe change code to AddPlayerBounds? i dunno
Um..no..
1) That's not even a function
2) His error was 'i' is not defined, meaning he doesn't have 'i' defined..
Reply
#9

Putting it on other place and now this error
Код:
(766) : error 021: symbol already defined: "SetPlayerWorldBounds"
Reply
#10

Show us your script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)