16.04.2014, 14:26
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;
}