Crash When SetPlayerPos
#1

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

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.
Reply
#3

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

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.
Reply
#5

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

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

let us see the code atleast
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)