Crash using SetPlayerPos
#1

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

Does it gives any errors/warnings when you compile?
Reply
#3

Are you defining them as floats?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)