Error !
#5

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
You were missing the second button parameter, and you omitted a bracket.
pawn Код:
if(dialogid == Commanddialog)
{
    if(response) // If they clicked 'Select' or double-clicked a weapon
    {
        // Give them the weapon
        if(listitem == 0) // They selected the first item - Desert Eagle
        {
            GivePlayerWeapon(playerid, WEAPON_DEAGLE, 14); // Give them a desert eagle
        }
        if(listitem == 1) // They selected the second item - AK-47
        {
            ShowPlayerDialog(playerid, 6, DIALOG_STYLE_MSGBOX, "Vip Commands", "/vheal - To Heal Yourself\n/vcar - To Spawn a VIP Car\n/vplane - To Spawn a VIP Plane\n/vcolor - To get VIP Color in Map ( Green )\n! - To Vip Chat", "Ok", "Cancel");
        }
        if(listitem == 2) // They selected the third item - Desert Eagle
        {
            GivePlayerWeapon(playerid, WEAPON_SHOTGSPA, 28); // Give them a Combat Shotgun
        }
        return 1;
    }
}
Still Errors !
Reply


Messages In This Thread
Error ! - by Avi57 - 22.07.2012, 05:59
Re: Error ! - by Kindred - 22.07.2012, 06:02
Re: Error ! - by ReneG - 22.07.2012, 06:08
Re: Error ! - by Avi57 - 22.07.2012, 06:11
Re: Error ! - by Avi57 - 22.07.2012, 06:15
Re: Error ! - by Kindred - 22.07.2012, 06:15
Re: Error ! - by Avi57 - 22.07.2012, 06:23
Re: Error ! - by Devilxz97 - 22.07.2012, 06:29
Re: Error ! - by Avi57 - 22.07.2012, 06:42

Forum Jump:


Users browsing this thread: 1 Guest(s)