06.09.2009, 04:09
[HLF]Southclaw, sarcasm fails on the internet.
Kokkie20, try this:
Kokkie20, try this:
pawn Код:
if(strcmp(cmdtext, "/idea", true, 5) == 0)
{
if(strlen(cmdtext[6]) == 0) return SendClientMessage(playerid, 0xFFFFFF, "Usage: /idea [your idea]");
new File:file, string[128];
format(string, sizeof(string), "%s\r\n", cmdtext[6]);
file = fopen("ideas.txt", io_append);
fwrite(file, string);
fclose(file);
return SendClientMessage(playerid, 0xFFFFFF, "Your idea has been saved!");
}