06.04.2011, 15:40
Код:
if(strcmp(cmdtext, "/me", true) == 0) { if(IsPlayerConnected(playerid)) { } new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[128]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, grey, "USAGE: /me [action]"); return 1; }