07.02.2018, 19:24
Anyone know why when i try to GetPlayerPos it's get coords like that:
And the numbers are not correct either, not only that is missing the "."
the code is that:
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
Code:
1156750726, 1151640679, 1091837952
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); }
I tried with strcmp and still not working