Invalid function / declaration?
#4

Try this.

pawn Код:
if(dialogid == weapon)
{
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {
                    ShowPlayerDialog(playerid,melee,DIALOG_STYLE_LIST,"Melee","Brass Knuckles ($500)\nGolf Club ($500)\nNight Stick ($500)\nKnife ($1000)\nBaseball Bat ($750)\nShovel ($500)\nPool Cue ($500)\nSword ($2000)","Buy","Close");
                    return 1;
                }
                case 1:
                {
                    ShowPlayerDialog(playerid,pistols,DIALOG_STYLE_LIST,"Pistols","9mm ($5000)\nSilenced Pistol ($7000)\nDesert Eagle ($100000)","Buy","Close");
                    return 1;
                }
                case 2:
                {
                    ShowPlayerDialog(playerid,shotguns,DIALOG_STYLE_LIST,"Shotguns","Shotgun ($50000)\nSawn-off Shotgun ($250000)\nCombat Shotgun ($500000)","Buy","Close");
                    return 1;
                }
                case 3:
                {
                    ShowPlayerDialog(playerid,smgs,DIALOG_STYLE_LIST,"SMGs","Tec 9 ($25000)\nUZI ($25000)\nMP5 ($100000)","Buy","Close");
                    return 1;
                }
                case 4:
                {
                    ShowPlayerDialog(playerid,assault,DIALOG_STYLE_LIST,"Assault Rifles","M4 ($500000)\nAK-47 ($500000)","Buy","Close");
                    return 1;
                }
                case 5:
                {
                    ShowPlayerDialog(playerid,rifles,DIALOG_STYLE_LIST,"Rifles/Snipers","Sniper ($1000000)\nCountry Rifle ($750000)","Buy","Close");
                    return 1;
                }
            }
        }
   }
Reply


Messages In This Thread
Invalid function / declaration? - by Calvingreen17 - 24.07.2013, 05:19
Re: Invalid function / declaration? - by ThePhenix - 24.07.2013, 05:21
Re: Invalid function / declaration? - by Calvingreen17 - 24.07.2013, 05:43
Re: Invalid function / declaration? - by Tayab - 24.07.2013, 07:22

Forum Jump:


Users browsing this thread: 1 Guest(s)