SetVIP problem
#1

Here is my Setvip code that i personally made

PHP код:
CMD:setVIP(playeridparams[])
{
    new 
victimname[MAX_PLAYER_NAME], vipname[MAX_PLAYER_NAME], viplvlid;
    if(
IsPlayerAdmin(playerid))
    {
        if (
sscanf(params"ui"idviplvl)) return SendClientMessage(playeridCOLOR_RED"USAGE: /setvip [id] [viplevel]");
        if (
id == INVALID_PLAYER_ID) return SendClientMessage(playeridCOLOR_RED"System: Invalid ID");
        if (
viplvl <= && viplvl >= 0) return SendClientMessage(playeridCOLOR_RED,"System: Valid vip Levels: 1-3!");
        
PlayerInfo[id][pVipLevel] = viplvl;
        
GetPlayerName(idvictimnamesizeof(victimname));
        
GetPlayerName(playeridvipnamesizeof(vipname));
        new 
str[128];
        
format(str,128,"System: %s [ID %d] has set %s [ID %d] admin level to %i",vipnameplayeridvictimnameidviplvl);
        
SendClientMessage(playerid,COLOR_GREEN,str);
        return 
1;
    }
    else return 
SendClientMessage(playerid,COLOR_RED,"  You are not allowed to use this command!");

So here's the problem, It doesn't work. None if the

if(PlayerInfo[playerid][pVipLevel] >= 3) work and when i type /setvip i got a response of Unknown Server Command. Whats the problem?
Reply


Messages In This Thread
SetVIP problem - by Shockey HD - 27.07.2011, 19:22
Re: SetVIP problem - by Burridge - 27.07.2011, 19:24
Re: SetVIP problem - by Shockey HD - 27.07.2011, 19:25
Re: SetVIP problem - by PrawkC - 27.07.2011, 19:26
Re: SetVIP problem - by Burridge - 27.07.2011, 19:26
Re: SetVIP problem - by Shockey HD - 27.07.2011, 19:37
Re: SetVIP problem - by PrawkC - 27.07.2011, 19:42
Re: SetVIP problem - by Shockey HD - 27.07.2011, 19:46

Forum Jump:


Users browsing this thread: 8 Guest(s)