SA-MP Forums Archive
Problem when adding VIP Locker - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem when adding VIP Locker (/showthread.php?tid=568269)



Problem when adding VIP Locker - Divald - 21.03.2015

Hello can someone help me with this problem
Код:
undefined symbol "pGunRes" and undefined symbol "DIALOG_VIP"
Only i got that error when i'm adding /vipgun but /vipheal and /viparmor is fine HELP ME! Tell me what i must be write there?,Help me Get +REP




BTW This my code /vipgun

Код:
CMD:vipgun(playerid, params[])
{
	if (PlayerInfo[playerid][pGunRes]>0)
	{
	    SendClientMessage(playerid, COLOR_GREY, "You're not allowed to take weapons while having gun restriction!");
	    return 1;
	}
    if(PlayerInfo[playerid][pDonator] < 3)
	{
         SendClientMessage(playerid, COLOR_WHITE, "You're not a Gold Donator");
         return 1;
    }
    if(IsPlayerInRangeOfPoint(playerid,3,1139.2238, 175.3508, 8999.2764))
    {
        if(PlayerInfo[playerid][pDonator] >= 3)
            ShowPlayerDialogEx(playerid, DIALOG_VIP, DIALOG_STYLE_LIST, "VIP Guns", "Deagle\nSniper Rifle\nShotgun\nSpas-12\nSword\nUzi\nMP5\nTec-9\nAK-47\nM4-A1\nBaseball Bat\nGolf Club\nSawn-Off            (20 VIPTokens)", "OK", "Cancel");
    }
    else
        SendClientMessage(playerid, COLOR_GRAD1, "You're not in the VIP Lounge!");

    return 1;
}



Re: Problem when adding VIP Locker - Divald - 21.03.2015

NVM pgunRes has been fixed to pDonator only For vip DIALOG HELP ME!


Re: Problem when adding VIP Locker - Divald - 21.03.2015

CLOSE THIS, Already fixed


Re: Problem when adding VIP Locker - DeitY - 21.03.2015

#define DIALOG_VIP "Vip Guns" / number howver u defined at top of script