#8

Dini cannot be used for that kind of stuff. You don't have "keys" in the file, you only write in it:
pawn Код:
CMD:bug(playerid, params[])
{
    if (isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /bug (bug)");
    new bug[128], File: fhandle = fopen("DM/Reports/Bugs.txt", io_append);
    format(bug, sizeof (bug), "By %s: %s\r\n", PlayerName(playerid), params);
    if (fhandle)
    {
        fwrite(fhandle, bug);
        fclose(fhandle);
    }
    else SendClientMessage(playerid, COLOR_RED, "The file couldn't be opened. Try again later!");
    return 1;
}
Reply


Messages In This Thread
Bug - by Ananisiki - 15.04.2014, 19:41
Re: Bug - by Ananisiki - 16.04.2014, 11:34
Re: Bug - by NovaGaming - 16.04.2014, 11:38
Re: Bug - by BroZeus - 16.04.2014, 11:38
AW: Bug - by BiosMarcel - 16.04.2014, 11:49
Re: Bug - by Ananisiki - 16.04.2014, 14:05
Re: Bug - by NovaGaming - 16.04.2014, 14:17
Re: Bug - by Konstantinos - 16.04.2014, 14:26
Re: Bug - by Ananisiki - 16.04.2014, 14:28
Re: Bug - by NovaGaming - 16.04.2014, 14:32

Forum Jump:


Users browsing this thread: 1 Guest(s)