[HELP] Confused with making a report system
#10

Quote:
Originally Posted by IceBilizard
View Post
try this
PHP Code:
CMD:report(playeridparams[])
{
    new 
reason[24],string[120],id,reportid=0;
    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).\r\n",reportid+1,PN(playerid),playerid,PN(id),id,reason);
    
MSGADMIN(COLOR_GREEN,string);
    
SCM(playerid,COLOR_GREEN,"   Your report has been sent to admins.");
    new 
Filefile fopen("Reports/Reports.ini"io_append);
    
fwrite(filestring);
    
fclose(file);
    return 
1;

Still displaying 1 at each report
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)