Idea Box
#2

[HLF]Southclaw, sarcasm fails on the internet.

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!");
}
Reply


Messages In This Thread
Idea Box - by kokkie20 - 06.09.2009, 01:34
Re: Idea Box - by Zezombia - 06.09.2009, 04:09
Re: Idea Box - by Abernethy - 06.09.2009, 04:10
Re: Idea Box - by kokkie20 - 06.09.2009, 10:32
Re: Idea Box - by kokkie20 - 06.09.2009, 11:10

Forum Jump:


Users browsing this thread: