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
#2

pawn Код:
if(dialogid == 1250)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, COLOR_GREEN,"Health Refilled! Took $2500!");
GivePlayerMoney(playerid, -2500);
SetPlayerHealth(playerid, 100);
}
else if(listitem == 1)
{
SendClientMessage(playerid, COLOR_GREEN,"Armour Refilled! Took $3000!");
GivePlayerMoney(playerid, -3000);
SetPlayerArmour(playerid, 100);
}
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);
}
+rep
Reply
#3

Crap.. i already fixed.. you are late. and btw i can't see any difference in my codes and yours one. :S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)