20.12.2015, 13:36
Try to put this on the top:
Then put this somewhere:
Then put this in the command:
Код:
forward StoreReport(playerid,reported,reason[]);
Код:
public StoreReport(playerid,reported,reason[]) { new hour,minute,second; gettime(hour,minute,second); for(new i = 0; i < MAX_REPORTS_STORE-1; i++) Reports[i] = Reports[i+1]; format(string,sizeof(string),"%d:%d:%d - %s(ID: %d) Has Reported %s(ID: %d) |{FF0000} REASON: %s ",hour,minute,second,GetName(playerid),playerid,GetName(reported),reported,reason); Reports[MAX_REPORTS_STORE-1] = string; }
Код:
WriteToLog(string,"Reports"); CallLocalFunction("StoreReport", "dds",playerid, id, reason);