Command causes alot of errors
#1

Hello, I have made a command but did I over see something because it gives me tons of errors

PHP код:
CMD:aduty(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= 2)
    {
    if (!
AdminDuty[playerid])
    {
        
PlayerInfo[playerid][pAdminDuty] = 1;
        
SendClientMessageEx(playeridCOLOR_GRAD2"You are now Off-Duty.");
    }
    else
    {
        
PlayerInfo[playerid][pAdminDuty] = 0;
        
SendClientMessageEx(playeridCOLOR_GRAD2"You are now On-Duty.");
    }
    else
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use that command.");
    }
    return 
1;

Reply


Messages In This Thread
Command causes alot of errors - by IndependentGaming - 11.03.2018, 14:12
Re: Command causes alot of errors - by RedFusion - 11.03.2018, 14:14
Re: Command causes alot of errors - by IndependentGaming - 11.03.2018, 14:17
Re: Command causes alot of errors - by AstroPoid - 11.03.2018, 14:22
Re: Command causes alot of errors - by IndependentGaming - 11.03.2018, 14:24
Re: Command causes alot of errors - by AstroPoid - 11.03.2018, 14:25
Re: Command causes alot of errors - by IndependentGaming - 11.03.2018, 14:33

Forum Jump:


Users browsing this thread: 1 Guest(s)