16.04.2014, 11:49
PHP код:
cmd:bug(playerid,params[])
{
new text[256];
if(sscanf(params, "s", 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);
//I think u want to send this sentence ^ to the admins :D so just add 1 more sendclientmessage
SendClientMessage(playerid,COLOR_RED,"Thank you for reporting a Bug");
new
File:lFile = fopen("Bugs.txt", io_append),
logData[250],
fyear, fmonth, fday,
fhour, fminute, fsecond;
getdate(fyear, fmonth, fday);
gettime(fhour, fminute, fsecond);
format(logData, sizeof(logData),"[%02d/%02d/%04d %02d:%02d:%02d] %s: %s \r\n", fday, fmonth, fyear, fhour, fminute, fsecond, getPlayerName(playerid), text);
fwrite(lFile, logData);
fclose(lFile);
return 1;
}
but i think ti should work