09.10.2010, 17:42
Код:
if(strcmp(cmd, "/changename", true) == 0) { tmp = strtok(cmdtext, idx); if (Logged[playerid] != true) { SendClientMessage(playerid, COLOR1, "Not Logged In"); return 1; } new last[256]; if(!strlen(tmp)) { SendClientMessage(playerid, COLOR2, "USE: /changename [name]"); return 1; } format(string, sizeof(string), "pplaccount/%s.asd", tmp); if(fexist(string)) { SendClientMessage(playerid, COLOR2, "That nickname already exists"); return 1; } GetPlayerName(playerid, pname, sizeof(pname)); format(last, sizeof(last), "accounts/%s.cer", pname); fremove(last); return 1; }
Please help :S