19.12.2010, 21:42
Please help
it's not working dunno why?
Код:
if (strcmp(cmdtext, "/gotoxyz", true) == 0) { if(IsPlayerConnected(playerid)) { new Float:X, Float:Y, Float:Z; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Usage: /gotoxyz [x] [y] [z]"); return 1; } X = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Usage: /gotoxyz [x] [y] [z]"); return 1; } Y = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Usage: /gotoxyz [x] [y] [z]"); return 1; } Z = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 2) { SendClientMessage(playerid, COLOR_GREEN, " ** You've teleported to desired X, Y, Z !"); SetPlayerPos(playerid, X, Y, Z); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } } return 1; }