Need help with this please. +Rep
#1

Hello,
I'm having a problem with this. I want it, so if a player is already level 1, 2, 3, or 4 VIP they can't use this. Here's my current code.
pawn Код:
if(dialogid == 255 && response)
    {
        switch(listitem)
        {
            case 0:
            {
                if(PlayerInfo[playerid][pCookies] >= 5)
                {
                    PlayerInfo[playerid][pVip] = 4;
                    if(PlayerInfo[playerid][pVip] >= 4)
                    {
                        SetTimerEx("TempVip", 150000, false, "i", playerid);
                        new pname[MAX_PLAYER_NAME];
                        GetPlayerName(playerid,pname,sizeof(pname));
                        new MyString[128];
                        PlayerInfo[playerid][pCookies] = PlayerInfo[playerid][pCookies] - 5;
                        format(MyString,sizeof MyString, "You are now temporary VIP Level 3 for 15 minutes.");
                        SendClientMessage(playerid, COLOR_GREEN, MyString);
                    }
                    else SendClientMessage(playerid, COLOR_BRIGHTRED, "ERROR: You're already a VIP member.");
                }
                else SendClientMessage(playerid, COLOR_BRIGHTRED, "ERROR: You don't have enough cookies. You need 5. You can check your cookies with /mycookies.");
            }
        }
    }
    return 1;
}
I've tried editing
pawn Код:
if(PlayerInfo[playerid][pVip]
Multiple times. It's just not working out. I've been trying for about a hour. So now I thought was time to come here.

Any help is appreciated, thanks.
Reply


Messages In This Thread
Need help with this please. +Rep - by rangerxxll - 08.03.2012, 02:32
Re: Need help with this please. +Rep - by Sufyan - 08.03.2012, 03:14
Re: Need help with this please. +Rep - by rangerxxll - 08.03.2012, 03:16
Re: Need help with this please. +Rep - by Shabi RoxX - 08.03.2012, 04:47
Re: Need help with this please. +Rep - by arathin - 08.03.2012, 05:21

Forum Jump:


Users browsing this thread: 1 Guest(s)