Help with GetPlayerPos
#1

Anyone know why when i try to GetPlayerPos it's get coords like that:

Code:
1156750726, 1151640679, 1091837952
And the numbers are not correct either, not only that is missing the "."

the code is that:

Code:
COMMAND:mylocation(playerid, params[])
{
	new Float:Pos[3];
	GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
	new string[255];
	format(string, sizeof(string), "Your coordinates are: X: %d, Y: %d, Z: %d", Pos[0], Pos[1], Pos[2]);
	SendClientMessage(playerid, COLOR_RED, string);
}
it's test command, i maked it for test if is from another command or it's a general problem, and it's not working.
I tried with strcmp and still not working
Reply


Messages In This Thread
Help with GetPlayerPos - by C0oL3r - 07.02.2018, 19:24
Re: Help with GetPlayerPos - by Fratello - 07.02.2018, 19:27
Re: Help with GetPlayerPos - by Abagail - 07.02.2018, 19:27
Re: Help with GetPlayerPos - by C0oL3r - 07.02.2018, 19:35
Re: Help with GetPlayerPos - by Mugala - 08.02.2018, 11:51
Re: Help with GetPlayerPos - by C0oL3r - 08.02.2018, 11:57

Forum Jump:


Users browsing this thread: 1 Guest(s)