/aduty command
#7

Quote:
Originally Posted by JuanStone
Посмотреть сообщение
What is the problem, you just want the command for administrators only rcon ?. which variable is the administrator of his script ?.

pawn Код:
CMD:aduty(playerid,params[])
{
    if(pInfo[playerid][pLevel] >= 1)
    {
        new skin[MAX_PLAYERS];
        if(OnDuty[playerid] == 0)
        {
            skin[playerid] = GetPlayerSkin(playerid);
            SetPlayerSkin(playerid, 217);
            SetPlayerHealth(playerid,100000);
            SetPlayerColor(playerid, 0x01FCFFFF);
            OnDuty[playerid] = 1;
        }
        else if(OnDuty[playerid] == 1)
        {
            SetPlayerSkin(playerid, skin[playerid]);
            SetPlayerHealth(playerid, 100);
            SetPlayerColor(playerid 0xFFFFFFFF);
            OnDuty[playerid] = 0;
        }
    }
    else
    {
        SendClientMessage(playerid, -1, "You are not administrator.");
    }
    return true;
}
Код:
.pwn(10621) : warning 209: function "cmd_dskin" should return a value
.pwn(10652) : error 001: expected token: ",", but found "-integer value-"
.pwn(10652) : warning 215: expression has no effect
.pwn(10652) : error 001: expected token: ";", but found ")"
.pwn(10652) : error 029: invalid expression, assumed zero
.pwn(10652) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
i fixed thanks
Reply


Messages In This Thread
/aduty command - by Mijata - 08.01.2015, 18:19
Re: /aduty command - by ZaBraNjeNi - 08.01.2015, 18:20
Respuesta: /aduty command - by JuanStone - 08.01.2015, 18:22
Re: /aduty command - by HydraHumza - 08.01.2015, 18:23
Re: /aduty command - by Mijata - 08.01.2015, 18:23
Respuesta: /aduty command - by JuanStone - 08.01.2015, 18:26
Re: Respuesta: /aduty command - by Mijata - 08.01.2015, 18:27
Re: /aduty command - by Mijata - 08.01.2015, 18:40
Respuesta: /aduty command - by JuanStone - 08.01.2015, 18:43
Re: /aduty command - by Mijata - 08.01.2015, 18:49

Forum Jump:


Users browsing this thread: 4 Guest(s)