16.04.2014, 14:32
Quote:
This creates the file inside there but it dont write the text inside the file....
|
CMD:bug(playerid, params[]){
new pID, text[64];
if(sscanf(params, "s[64]", text)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /bug (bug)");
new bug[256];
format(bug, sizeof bug, "%s Has Reported A Bug. Description: %s", PlayerName(pID), text);
new file[256];
format(file, sizeof file, "DM/Reports/Bugs.txt", text);
if(!dini_Exists(file)){
dini_Create(file);
dini_Set(file,bug);
}
return 1;
}