06.05.2018, 16:32
i'm trying to tell player's pos in the chat but it retrieves empty floats
any idia why this doesn't work?
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; }