12.05.2012, 09:50
i have this code
and what i want is when i type /coordinates the server say to me "Your coordinates are X Y Z" of course the X -Y - Z must be numbers
the code i have writed above will do this work or is wrong? thanx to everybody!
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/coordinates", cmdtext, true, 10) == 0) { new String[231]; new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); format(String, sizeof(String), "Your coordinates are %s", GetPlayerPos(playerid, x, y, z)-1); SendClientMessage(playerid, 0x33FF33AA, String); return 1; } return 0; }
the code i have writed above will do this work or is wrong? thanx to everybody!
