Question,
#1

When i test the command it will say Player Not connected.
I don't know what i did wrong

PHP код:
CMD:acceptreport(playeridparams[])
{
    new 
pIDsendername[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME], string[128];
    if(
PlayerInfo[playerid][pAdmin] < 1) return SCM(playeridCOLOR_LIGHTRED,"[C-RP]: {FFFFFF}You are not authorized to use this");
    if(
sscanf(params,"u"pID)) return SCM(playeridCOLOR_LIGHTRED,"[C-RP]: {FFFFFF}/acceptreport [playerid]");
    if(!
IsPlayerConnected(pID)) return SCM(playeridCOLOR_LIGHTRED,"[C-RP]: {FFFFFF}Player not connected");
    else
    {
        if(
PlayerReport[pID] == 1)
        {
            
PlayerReport[pID] = 0;
             
GetPlayerName(playeridsendernamesizeof(sendername));
            
GetPlayerName(pIDnamesizeof(name));
            
format(stringsizeof(string), "[C-RP Admin]: {FFFFFF}%s has just accepted the report of [ID:%d]%s."sendernamepIDname);
            
ABroadCast(COLOR_LIGHTREDstring1);
            
format(stringsizeof(string), "[C-RP Admin]: {FFFFFF}%s has accepted your report and will assist you shortly."playeridsendername);
            
SendClientMessage(pIDCOLOR_LIGHTREDstring);
        }
        else return 
SCM(playeridCOLOR_LIGHTRED,"[C-RP]: {FFFFFF}That player didn't send a report!");
    }
    return 
1;

Reply


Messages In This Thread
Question, - by ImprezBart - 01.11.2011, 16:11
Re: Question, - by Wesley221 - 01.11.2011, 16:15
Re: Question, - by ImprezBart - 01.11.2011, 16:57
Re: Question, - by seanny - 01.11.2011, 17:34
Re: Question, - by i514x - 01.11.2011, 17:50
Re: Question, - by Zonoya - 01.11.2011, 17:58

Forum Jump:


Users browsing this thread: 4 Guest(s)