Crash When SetPlayerPos - 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: Crash When SetPlayerPos (
/showthread.php?tid=124130)
Crash When SetPlayerPos -
Zafire2008 - 29.01.2010
When i use this line SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]);
In game the game crashes :S:S .. and the vars are correctly i verified they with Format and SendClientMensaje... but when i useee this SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]); ... the game crashes :S:S say "STAY WITHIN THE WORLD BOUNTRIES" and the colorr changeee my position is in the map in the water.. and i have to close the gta sa process... because the game crashes
Here is the line :S
SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]);
Can help me please?
Re: Crash When SetPlayerPos -
Eazy_Efolife - 29.01.2010
Quote:
Originally Posted by Zafire2008
When i use this line SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]);
In game the game crashes :S:S .. and the vars are correctly i verified they with Format and SendClientMensaje... but when i useee this SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]); ... the game crashes :S:S say "STAY WITHIN THE WORLD BOUNTRIES" and the colorr changeee my position is in the map in the water.. and i have to close the gta sa process... because the game crashes
Here is the line :S
SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]);
Can help me please?
|
Try removing the World Boundries.
Re: Crash When SetPlayerPos -
Zafire2008 - 29.01.2010
Quote:
Originally Posted by Compton's Eazy E
Quote:
Originally Posted by Zafire2008
When i use this line SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]);
In game the game crashes :S:S .. and the vars are correctly i verified they with Format and SendClientMensaje... but when i useee this SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]); ... the game crashes :S:S say "STAY WITHIN THE WORLD BOUNTRIES" and the colorr changeee my position is in the map in the water.. and i have to close the gta sa process... because the game crashes
Here is the line :S
SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]);
Can help me please?
|
Try removing the World Boundries.
|
I dont understand.. how i can remove the world boundries?
Re: Crash When SetPlayerPos -
Eazy_Efolife - 29.01.2010
Quote:
Originally Posted by Zafire2008
Quote:
Originally Posted by Compton's Eazy E
Quote:
Originally Posted by Zafire2008
When i use this line SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]);
In game the game crashes :S:S .. and the vars are correctly i verified they with Format and SendClientMensaje... but when i useee this SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]); ... the game crashes :S:S say "STAY WITHIN THE WORLD BOUNTRIES" and the colorr changeee my position is in the map in the water.. and i have to close the gta sa process... because the game crashes
Here is the line :S
SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]);
Can help me please?
|
Try removing the World Boundries.
|
I dont understand.. how i can remove the world boundries?
|
In your script editor, find SetPlayerWorldBounds and remove it.
Re: Crash When SetPlayerPos -
Zafire2008 - 29.01.2010
Quote:
Originally Posted by Compton's Eazy E
Quote:
Originally Posted by Zafire2008
Quote:
Originally Posted by Compton's Eazy E
Quote:
Originally Posted by Zafire2008
When i use this line SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]);
In game the game crashes :S:S .. and the vars are correctly i verified they with Format and SendClientMensaje... but when i useee this SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]); ... the game crashes :S:S say "STAY WITHIN THE WORLD BOUNTRIES" and the colorr changeee my position is in the map in the water.. and i have to close the gta sa process... because the game crashes
Here is the line :S
SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]);
Can help me please?
|
Try removing the World Boundries.
|
I dont understand.. how i can remove the world boundries?
|
In your script editor, find SetPlayerWorldBounds and remove it.
|
I dont Have SetPlayerWorldBounds in my script
when i use SendClientMessage and the variables.. said mee te correct variables but when i usee setplayerpos teleport my player to pos x: 1154821888.000000 y: 1152744704.000000 z: 1093473152.000000 and the game crashes :S
Re: Crash When SetPlayerPos -
SMX - 29.01.2010
Those values are extremely high, I'm guessing that is causing the crash.
As far as I know the map stretches from -3000, -3000 to 3000, 3000 on the X and Y axis.
You can go outside of that but there is just water.
Re: Crash When SetPlayerPos -
will_92 - 29.01.2010
let us see the code atleast