WorldBound bug -
ajwar - 22.05.2010
HI, i am trying to add WorldBounds in sa-mp with function SetPlayerWorldBounds. I maked 4 points and i cant put coordinates correct. Can someone help?
Код:
AddPlayerClass(281,409.2489,-2088.7932,7.8359,2.0337,0,0,0,0,0,0); //
AddPlayerClass(281,349.8480,-2088.7693,7.8301,171.6936,0,0,0,0,0,0); //
AddPlayerClass(281,360.8568,-1797.9642,8.1873,2.9737,0,0,0,0,0,0); //
AddPlayerClass(281,408.8465,-1796.8446,7.8346,256.7527,0,0,0,0,0,0); //
Re: WorldBound bug -
Hiddos - 22.05.2010
Well it works like:
SetPlayerWorldBounds(playerid,Float

_max,Float

_ min,Float:y_max,Float:y_min);
Example:
1) Player is yourself - playerid
2) Min X: 600 - Max X: 1200
3) Min Y: 250 - Max Y: 300
Will become
SetPlayerWorldBounds(playerid,1200,600,300,250);
Re: WorldBound bug -
ajwar - 22.05.2010
Quote:
Originally Posted by Hiddos
Well it works like:
SetPlayerWorldBounds(playerid,Float  _max,Float  _ min,Float:y_max,Float:y_min);
Example:
1) Player is yourself - playerid
2) Min X: 600 - Max X: 1200
3) Min Y: 250 - Max Y: 300
Will become
SetPlayerWorldBounds(playerid,1200,600,300,250);
|
Can you make one with my coordinates? I cant get it work, it always says "Stay within boundaries" even if i am there.
Re: WorldBound bug -
luigifan9 - 22.05.2010
wait, are you using
ALL of the stuff in the parentheses of addplayerclass -.-
Re: WorldBound bug -
On_Top_Non_Stop - 22.05.2010
Quote:
Originally Posted by luigifan9
wait, are you using ALL of the stuff in the parentheses of addplayerclass -.-
|
Thats his position saves.
You should try this app if your not good at getting the correct positions.
http://forum.sa-mp.com/index.php?topic=14702.0
Re: WorldBound bug -
ajwar - 22.05.2010
Quote:
Originally Posted by OnTop2K9
Quote:
Originally Posted by luigifan9
wait, are you using ALL of the stuff in the parentheses of addplayerclass -.-
|
Thats his position saves.
You should try this app if your not good at getting the correct positions.
http://forum.sa-mp.com/index.php?topic=14702.0
|
Thanks, i will try it
Re: WorldBound bug -
ajwar - 22.05.2010
This program gives me this: SetPlayerWorldBounds(playerid, 478,3108, 356,6201, -1981,89, -2120,061); . The compiler says:
Код:
C:\Users\John\Desktop\xp\samp03asvr_R7_win32\gamemodes\stunt.pwn(142) : warning 202: number of arguments does not match definition
C:\Users\John\Desktop\xp\samp03asvr_R7_win32\gamemodes\stunt.pwn(142) : warning 202: number of arguments does not match definition
C:\Users\John\Desktop\xp\samp03asvr_R7_win32\gamemodes\stunt.pwn(142) : warning 202: number of arguments does not match definition
C:\Users\John\Desktop\xp\samp03asvr_R7_win32\gamemodes\stunt.pwn(142) : warning 202: number of arguments does not match definition
When i change to SetPlayerWorldBounds(playerid, 478.3108, 356.6201, -1981.89, -2120.061); it compiles, but it doesn't work. It says that i am not in the boundaries even if i am there.