Need help
#3

PHP код:
CMD:adduty(playeridparams[])
{
    new 
string[256];
        new 
AdminName[28];
        
GetPlayerName(playeridAdminNamesizeof(AdminName));
        
format(stringsizeof(string), "Administrator %s is now on duty. (/report for assistance)."AdminName;

    if(
PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playeridCOLOR_GREY,"You are not authorized to use that command.");
    else
    {
        {
            
SetPlayerColor(playeridCOLOR_BLACK);
            
SetPlayerHealth(playerid99999);
            
SetPlayerArmour(playerid99999);
            {
            
SendClientMessage(playeridCOLOR_LIGHTBLUE"You are now administrator On duty .");

            
SendClientMessageToAll(COLOR_YELLOWstring);
            }

        }
    }
    return 
1;

This is what I wrote now

and I get the error, "Excepted token "," but found ";"
Reply


Messages In This Thread
Need help - by JoeyDeBlob - 26.12.2011, 14:34
AW: Need help - by jack3 - 26.12.2011, 14:44
Re: Need help - by JoeyDeBlob - 26.12.2011, 15:32
Re: Need help - by rinori - 26.12.2011, 15:37
Re: Need help - by JoeyDeBlob - 26.12.2011, 15:47

Forum Jump:


Users browsing this thread: 1 Guest(s)