A problem with a dialog
#1

Hello, I made a dialog like Ammu-Nation GUNSHOP, but when I enter that pickup nobody's happen's. Please help me out .
That's response for dialog
Код:
public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
{
	//AMMU-NATION parduotuvė
	if(dialogid == DIALOG_AMMU_GUN)
	{
            if(listitem == 0)
			{
				if(GetPlayerMoneyA(playerid)<7500){ 
				SendClientMessage(playerid,-1,"{F22715}SERVERIS:{F2C915} Neturite tiek pinigų!"); return 1;
				}
				GivePlayerMoneyA(playerid, -7500);
				SendClientMessage(playerid,-1,"{F22715}SERVERIS:{F2C915} Įsigijote Deagle 100 kulkų uћ 7500 LT!");
				GivePlayerWeapon(playerid,24,100);
			}
		if(listitem == 1)
		{
		    	if(GetPlayerMoneyA(playerid)<5000){ 
				SendClientMessage(playerid,-1,"{F22715}SERVERIS:{F2C915} Neturite tiek pinigų!"); return 1;
				}
				GivePlayerMoneyA(playerid, -5000);
				SendClientMessage(playerid,-1,"{F22715}SERVERIS:{F2C915} Įsigijote Colt 100 kulkų uћ 5000 LT!");
				GivePlayerWeapon(playerid,22,100);
			}
		if(listitem == 2)
		{
		    	if(GetPlayerMoneyA(playerid)<11750){ 
				SendClientMessage(playerid,-1,"{F22715}SERVERIS:{F2C915} Neturite tiek pinigų!"); return 1;
				}
				GivePlayerMoneyA(playerid, -5000);
				SendClientMessage(playerid,-1,"{F22715}SERVERIS:{F2C915} Įsigijote MP5 100 kulkų uћ 11750 LT!");
				GivePlayerWeapon(playerid,29,100);
			}
		if(listitem == 3)
		{
		    	if(GetPlayerMoneyA(playerid)<15000){
				SendClientMessage(playerid,-1,"{F22715}SERVERIS:{F2C915} Neturite tiek pinigų!"); return 1;
				}
				GivePlayerMoneyA(playerid, -15000);
				SendClientMessage(playerid,-1,"{F22715}SERVERIS:{F2C915} Įsigijote Shotgun 100 kulkų uћ 15000 LT!");
				GivePlayerWeapon(playerid,25,100);
			}
			}
		}
	}
	///
And here's define
Код:
#define DIALOG_AMMU_GUN     456123
And that's where i'm responsing when entering a pickup
Код:
if(pickupid == pickups[1][ammunationgun])
	{
	if(!playerDB[playerid][teisesG])
	{
	SendClientMessage(playerid,-1,"{F22715}SERVERIS:{F2C915} Jūs negalite pirkti ginklų, kol neturite licenzijos, iљsilaikykite ją!");
	}
	else{
	ShowPlayerDialog(playerid,DIALOG_AMMU_GUN,DIALOG_STYLE_LIST,"Parduotuvė","Deagle(100)\nColt(100)\nMP5(100)\nShotgun(100)","Pasirinkti","Atgal");
	}
	}
Please, help me..I'm doing some edit from a LTG gamemode, that's Lithuanian. Help me, say what I'm doing wrong, thanks
Reply


Messages In This Thread
A problem with a dialog - by Burning - 10.06.2013, 08:52
Re: A problem with a dialog - by IceBilizard - 10.06.2013, 08:56
Re: A problem with a dialog - by Burning - 10.06.2013, 08:58
Re: A problem with a dialog - by IceBilizard - 10.06.2013, 09:15
Re: A problem with a dialog - by Burning - 10.06.2013, 09:17
Re: A problem with a dialog - by IceBilizard - 10.06.2013, 09:20
Re: A problem with a dialog - by Burning - 10.06.2013, 09:21
Re: A problem with a dialog - by Burning - 10.06.2013, 09:24
Re: A problem with a dialog - by IceBilizard - 10.06.2013, 09:31
Re: A problem with a dialog - by Burning - 10.06.2013, 09:43

Forum Jump:


Users browsing this thread: 1 Guest(s)