[HELP ]CMD
#1

pawn Код:
CMD:setprem(playerid,params[])
{
    if(PlayerInfo[playerid][AdminLevel] < 5) return SendClientMessage(playerid,YELLOW,"» Error:You must be an administrator to use this command");
    static id,prem;
    if(sscanf(params,"ui",id,prem)) return SendClientMessage(playerid,YELLOW,"USAGE:/setprem <id> <premium> 1 = Gold | 2 = Platinium");
    if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid,YELLOW,"» Error: That player isn't connected!");
    if(prem > 2 && prem < 0) return SendClientMessage(playerid,YELLOW,"Maximum premium level is 2!");
    if(prem == 1)
    {
        SendClientMessage(id,"» Administrator %d has setted youre VIP to Gold",playerid);
    }
    else
    {
        SendClientMessage(id,"» Administrator %d has setted youre VIP to  None.",playerid);
        SetPlayerArmour(id,0);
    }
    PlayerInfo[id][Pvip] = prem;
    return 1;
}
help me i get this errors

pawn Код:
error 035: argument type mismatch (argument 2)
error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Reply


Messages In This Thread
[HELP ]CMD - by PinkyDoze - 03.03.2014, 14:01
Re: [HELP ]CMD - by Keyhead - 03.03.2014, 14:08
Re: [HELP ]CMD - by PinkyDoze - 03.03.2014, 14:39

Forum Jump:


Users browsing this thread: 1 Guest(s)