trying to make shop
#1

for my dialog
pawn Код:
if(dialogid == 1)
            {
            if(!response) return SendClientMessage(playerid, 0xFF0000FF, "You canceled!");
            ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST, "Meele Weapons", "Brass Knuckles $100 \nGolf Club $100 \nNite Stick $100 \nKnife $100 \nBaseball Bat $100 \nShovel $100 \nKatana $150 \nChainsaw $150 \nFlowers $150 \nCane $150", "Buy", "Back");
            }
            return 1;
            }
if(dialogid == 2)
            {
            if(response)
            {
            if(listitem == 0)
            {
            GivePlayerWeapon(playerid,1,99999);
            }
            if(listitem == 1)
            {
            GivePlayerWeapon(playerid,2,99999);
            }
            if(listitem == 2)
            {
            GivePlayerWeapon(playerid,3,1);
            }
            if(listitem == 3)
            {
            GivePlayerWeapon(playerid,4,1);
            }
            if(listitem == 4)
            {
            GivePlayerWeapon(playerid,5,1);
            }
            if(listitem == 5)
            {
            GivePlayerWeapon(playerid,6,1);
            }
            if(listitem == 6)
            {
            GivePlayerWeapon(playerid,8,1);
            }
            if(listitem == 7)
            {
            GivePlayerWeapon(playerid,9,1);
            }
            if(listitem == 8)
            {
            GivePlayerWeapon(playerid,14,1);
            }
            if(listitem == 9)
            {
            GivePlayerWeapon(playerid,15,1);
            }
            }
            return 1;
            }
i get these weird errors :S
pawn Код:
D:\Users\Tanush\Desktop\samp dm\gamemodes\DM.pwn(486) : error 010: invalid function or declaration
D:\Users\Tanush\Desktop\samp dm\gamemodes\DM.pwn(488) : error 010: invalid function or declaration
D:\Users\Tanush\Desktop\samp dm\gamemodes\DM.pwn(490) : error 010: invalid function or declaration
D:\Users\Tanush\Desktop\samp dm\gamemodes\DM.pwn(494) : error 010: invalid function or declaration
D:\Users\Tanush\Desktop\samp dm\gamemodes\DM.pwn(498) : error 010: invalid function or declaration
D:\Users\Tanush\Desktop\samp dm\gamemodes\DM.pwn(502) : error 010: invalid function or declaration
D:\Users\Tanush\Desktop\samp dm\gamemodes\DM.pwn(506) : error 010: invalid function or declaration
D:\Users\Tanush\Desktop\samp dm\gamemodes\DM.pwn(510) : error 010: invalid function or declaration
D:\Users\Tanush\Desktop\samp dm\gamemodes\DM.pwn(514) : error 010: invalid function or declaration
D:\Users\Tanush\Desktop\samp dm\gamemodes\DM.pwn(518) : error 010: invalid function or declaration
D:\Users\Tanush\Desktop\samp dm\gamemodes\DM.pwn(522) : error 010: invalid function or declaration
D:\Users\Tanush\Desktop\samp dm\gamemodes\DM.pwn(526) : error 010: invalid function or declaration
D:\Users\Tanush\Desktop\samp dm\gamemodes\DM.pwn(531) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


13 Errors.
LINE 486 is
pawn Код:
if(dialogid == 2)
Reply


Messages In This Thread
trying to make shop - by tanush - 10.03.2011, 00:00
AW: trying to make shop - by Nero_3D - 10.03.2011, 00:05
Re: trying to make shop - by tanush - 10.03.2011, 00:15
AW: trying to make shop - by Nero_3D - 10.03.2011, 00:51
Re: trying to make shop - by SchurmanCQC - 10.03.2011, 01:12
Re: trying to make shop - by tanush - 10.03.2011, 01:22
Re: trying to make shop - by SchurmanCQC - 10.03.2011, 01:29
Re: trying to make shop - by tanush - 10.03.2011, 01:31
Re: trying to make shop - by SchurmanCQC - 10.03.2011, 01:37
Re: trying to make shop - by Skylar Paul - 10.03.2011, 02:19

Forum Jump:


Users browsing this thread: 1 Guest(s)