10.03.2011, 00:00
for my dialog
i get these weird errors :S
LINE 486 is
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;
}
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.
pawn Код:
if(dialogid == 2)