world boundries - 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: world boundries (
/showthread.php?tid=83819)
world boundries -
Futurezx - 27.06.2009
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"
Re: world boundries -
borisblat - 27.06.2009
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
Re: world boundries -
Futurezx - 27.06.2009
Getting 4 errors
Код:
(432) : warning 202: number of arguments does not match definition
these are 4 errors all same
Re: world boundries -
Grim_ - 27.06.2009
pawn Код:
SetPlayerWorldBounds(i, -1486.952, -1579.656, 388.9236, 313.9693);
Re: world boundries -
Futurezx - 27.06.2009
(431) : error 017: undefined symbol "i"
Re: world boundries -
Grim_ - 27.06.2009
where are you putting this? If under a callback, replace 'i' with 'playerid'.
Re: world boundries -
laser50 - 27.06.2009
maybe change code to AddPlayerBounds? i dunno
Re: world boundries -
Grim_ - 27.06.2009
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..
Re: world boundries -
Futurezx - 27.06.2009
Putting it on other place and now this error
Код:
(766) : error 021: symbol already defined: "SetPlayerWorldBounds"
Re: world boundries -
Grim_ - 27.06.2009
Show us your script.