11.11.2009, 19:46
Quote:
Originally Posted by AF1-4-LIFE
Maybe you should make it like this:
Код:
//under OnPlayerCommandText(playerid, cmdtext[]) new string[256]; //then your code here if (strcmp("/mypos", cmdtext, true, 6) == 0) //should be 6 not 10 { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); SendClientMessage(playerid, COLOR_REDTRANS, "Displaying position... Loaded..."); format(string, sizeof(string), "Your position: %s, %s, %s.", x, y, z); SendClientMessage(playerid,COLOR_REDTRANS,string); return 1; } AF1 |