10.06.2013, 08:52
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
And here's define
And that's where i'm responsing when entering a pickup
Please, help me..I'm doing some edit from a LTG gamemode, that's Lithuanian. Help me, say what I'm doing wrong, thanks
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); } } } } ///
Код:
#define DIALOG_AMMU_GUN 456123
Код:
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"); } }