Dialog not Responding
#1

The codes..:
NOTE: it has another dialog above it.
pawn Код:
if(dialogid == 1250)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, COLOR_GREEN,"Health Refilled! Took $2500!");
GivePlayerMoney(playerid, -2500);
SetPlayerHealth(playerid, 100.0);
}
else if(listitem == 1)
{
SendClientMessage(playerid, COLOR_GREEN,"Armour Refilled! Took $3000!");
GivePlayerMoney(playerid, -3000);
SetPlayerArmour(playerid, 100.0);
}
else if(listitem == 2)
{
SendClientMessage(playerid, COLOR_GREEN,"Bought Knife! Took $500!");
GivePlayerMoney(playerid, -500);
GivePlayerWeapon(playerid, 4, 1);
}
else if(listitem == 3)
{
SendClientMessage(playerid, COLOR_GREEN,"Bought Chainsaw! Took $1500!");
GivePlayerMoney(playerid, -1500);
GivePlayerWeapon(playerid, 9, 1);
}
else if(listitem == 4)
{
SendClientMessage(playerid, COLOR_GREEN,"Bought Combat Shotgun (100 ammo)! Took $2500!");
GivePlayerMoney(playerid, -2500);
GivePlayerWeapon(playerid, 27, 100);
}
else if(listitem == 5)
{
SendClientMessage(playerid, COLOR_GREEN,"Bought M4 (100 ammo)! Took $2500!");
GivePlayerMoney(playerid, -2500);
GivePlayerWeapon(playerid, 31, 100);
}
else if(listitem == 6)
{
SendClientMessage(playerid, COLOR_GREEN,"Bought MP5 (100 ammo)! Took $1500!");
GivePlayerMoney(playerid, -1500);
GivePlayerWeapon(playerid, 29, 100);
}
else if(listitem == 7)
{
SendClientMessage(playerid, COLOR_GREEN,"Bought Deagle(50 ammo)! Took $1000!");
GivePlayerMoney(playerid, -1000);
GivePlayerWeapon(playerid, 24, 100);
}
fast help would be apriciated.
Reply


Messages In This Thread
Dialog not Responding - by Jarnu - 01.07.2012, 06:10
Re: Dialog not Responding - by [A]ndrei - 01.07.2012, 07:11
Re: Dialog not Responding - by Jarnu - 01.07.2012, 07:20

Forum Jump:


Users browsing this thread: 1 Guest(s)