Help with command to get player pos
#1

i'm trying to tell player's pos in the chat but it retrieves empty floats
any idia why this doesn't work?

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp(cmdtext, "/pos", true) == 0)
	{
	    new Float:x, Float:y, Float:z, string[50];
	    GetPlayerPos(playerid, x, y, z);
	    format(string, sizeof(string), "x: %f, y: %f, z: %f", x, y, z);
	    SendClientMessage(playerid, 0xFFFFFFAA, string);
	}
	return 1;
}
Reply


Messages In This Thread
Help with command to get player pos - by Reiikz - 06.05.2018, 16:32
Re: Help with command to get player pos - by Osamakurdi - 06.05.2018, 16:41
Re: Help with command to get player pos - by insus100 - 06.05.2018, 16:49
Re: Help with command to get player pos - by Lokii - 06.05.2018, 16:53
Re: Help with command to get player pos - by Reiikz - 06.05.2018, 17:00
Re: Help with command to get player pos - by insus100 - 06.05.2018, 17:02
Re: Help with command to get player pos - by Dayrion - 06.05.2018, 17:05
Re: Help with command to get player pos - by HoussemKeyCo - 06.05.2018, 17:59

Forum Jump:


Users browsing this thread: 3 Guest(s)