22.10.2016, 05:15
But how can i save the string by leaving a line FOR EX-
1. [report #1]
2. [report #2]
Right now its showing like this
1. [report #1] [report #2]
1. [report #1]
2. [report #2]
Right now its showing like this
1. [report #1] [report #2]
Code:
CMD:report(playerid, params[]) { new reason[24],string[120],id,reportid=0,File: file = fopen("Reports/Reports.ini", io_append); if(sscanf(params,"us[24]",id,reason)) return SCM(playerid,COLOR_ORANGE,"USAGE: /report [playerid] [reason]"); format(string,sizeof(string),"[REPORT #%d] %s[%d] has reported %s[%d]. Reason: (%s).",reportid+1,PN(playerid),playerid,PN(id),id,reason); MSGADMIN(COLOR_GREEN,string); SCM(playerid,COLOR_GREEN," Your report has been sent to admins."); fwrite(file,string); fclose(file); return 1; }