19.03.2009, 17:43
Hai!
How come if you do /suggest ingame it says you have suggested something? I want it to be like: Usage: /suggesrt <yoursuggestion>.
Thanks in advance!
Код:
if(strcmp(cmdtext, "/suggest", true, 5)==0) { new string[128], name[MAX_PLAYER_NAME]; new File:pos = fopen("suggestions.txt", io_append); GetPlayerName(playerid, name, sizeof(name)); if(!strlen(cmdtext)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /suggest <your suggestion>"); format(string, sizeof(string), "%s has suggested: %s ", name, cmdtext[6]); fwrite(pos, string); fwrite(pos, "\r\n"); fclose(pos); SendClientMessage(playerid,COLOR_WHITE,"SERVER: You have done a suggestion!"); return 1; }
Thanks in advance!