Command causes alot of errors
#5

Quote:
Originally Posted by AstroPoid
Посмотреть сообщение
if its not an missed bracket above, try this
Код:
CMD:aduty(playerid, params[])
{
    if(Adminlevelofplayer[playerid] == 0) return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
    if(PlayerInfo[playerid][pAdmin] >= 2)
    {
    	if (!AdminDuty[playerid])
        {
        	PlayerInfo[playerid][pAdminDuty] = 1;
        	SendClientMessageEx(playerid, COLOR_GRAD2, "You are now Off-Duty.");
 	}
    	else
	{
        	PlayerInfo[playerid][pAdminDuty] = 0;
        	SendClientMessageEx(playerid, COLOR_GRAD2, "You are now On-Duty.");
	{
    }
    return 1;
}
And send your errors if that doesn't help you
What is if(Adminlevelofplayer[playerid] == 0) return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
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)