/report not working
#1

It won't show the reason for why the player is being reported.

PHP код:
CMD:report(playeridparams[]) // Commands                                                           ***********
{
    new 
name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME],string[128],reason[128],id;
    if(
sscanf(params,"ds[64]",id)) return SendClientMessage(playerid,COL_WHITE,"USAGE: /report [Reason]");
    
GetPlayerName(playerid,name,sizeof(name));
    
GetPlayerName(id,name2,sizeof(name2));
       if(
PlayerInfo[id][pAdmin]>0)
    {
        
format(string,128,"%s reported %s for %s",name,name2,reason);
        
SendClientMessage(id,COL_WHITE,string);
    }
    return 
1;

Reply


Messages In This Thread
/report not working - by Noles2197 - 19.01.2013, 23:38
Re: /report not working - by LarzI - 19.01.2013, 23:42
Re: /report not working - by Stevo127 - 19.01.2013, 23:42
Re: /report not working - by Djole1337 - 19.01.2013, 23:57
Re: /report not working - by Stevo127 - 20.01.2013, 00:03

Forum Jump:


Users browsing this thread: 1 Guest(s)