SA-MP Forums Archive
Crash using 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 using SetPlayerPos (/showthread.php?tid=124437)



Crash using SetPlayerPos - Zafire2008 - 30.01.2010

I need to setplayerpos with a variable.. i use this line

Код:
SetPlayerPos(playerid,pinfo[playerid][px],pinfo[playerid][py],pinfo[playerid][pz]);
but the game crash :S:S

The vars are correct because i use this

Код:
		format(txt, sizeof(txt), "Coord x: %f y: %f z: %f", pinfo[playerid][px], pinfo[playerid][py], pinfo[playerid][pz]);
		SendClientMessage(playerid, COLOR_LIGHTBLUE, txt);
And that show me the corrects coords... but when i use that vars whit SetPlayerPos.. i appears in the middle of the water and my game crashes

please i need help! can help me?


Re: Crash using SetPlayerPos - bartje01 - 31.01.2010

Does it gives any errors/warnings when you compile?


Re: Crash using SetPlayerPos - Backwardsman97 - 31.01.2010

Are you defining them as floats?