[POMOC] Pica u dialogu


Započeo Frile, Mart 27, 2011, 13:43:35 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:GTA RP
Detaljan opis problema: napravio sam da mi pica budu u dialogu a dialog se prikazuje komandom /drink ali kad ukucam drink izaberem pice i onda normalno oduzme pare i tamo pise da pijem pice ali vec posle 2 puta kad ukucam drink pojavi mi se meni sa picem ja odaberem sta cu da uzmem ali onda mi neoduzima pare niti  mi pise da pijem pice. dali neko zna do cega je problem
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):



BloodMaster

*

Ex. Super Moderator

A kako cemo mi to znati? Nisi dao ni jednu liniju, ni jedan kod niti nista!!! Pa daj razmisljajte mozgom!

zaboravio sam staviti  ;) evo sto je u ondialog

if(dialogid == 300)
	{
		if(response)
		{
   			if(listitem == 0)
   			{
                    ShowPlayerDialog(playerid, 301, DIALOG_STYLE_LIST, "NEALHOHOLNA PICA", "Voda(1) \nKola(5) \nKisjela Voda(5) ", "U redu", "Odustani");
		   }
		   if(listitem == 1)
   			{
                    ShowPlayerDialog(playerid, 302, DIALOG_STYLE_LIST, "ALKOHOLNA PICA", "Loza(10) \nVodka(15) \nSampanjac(100) \nJabukovaca(15) ", "U redu", "Odustani");
		   }
		   if(listitem == 2)
   			{
                    ShowPlayerDialog(playerid, 303, DIALOG_STYLE_LIST, "KAFE", "Turska kafa-crna(4) \nCappuccino(5) \nNes kafa(5) ", "U redu", "Odustani");
		   }
		   if(listitem == 3)
   			{
                    ShowPlayerDialog(playerid, 304, DIALOG_STYLE_LIST, "LIKERI", "Martini(25) \nLimoncello(20) \nCokoladni liker(20) ", "U redu", "Odustani");
		   }
		   if(listitem == 4)
   			{
                    ShowPlayerDialog(playerid, 305, DIALOG_STYLE_LIST, "PIVA", "Niksicko Pivo(15) \nJelen Pivo(10) \nTuborg(10) ", "U redu", "Odustani");
		   }
		   if(listitem == 5)
   			{
                    ShowPlayerDialog(playerid, 306, DIALOG_STYLE_LIST, "VINA", "Crno Vino (13jul plantaza)(20) \nBijelo Vino (13jul plantaza)(20) \nPro Cored(25) ", "U redu", "Odustani");
		   }
		   if(listitem == 6)
   			{
                    ShowPlayerDialog(playerid, 307, DIALOG_STYLE_LIST, "KOKTELI", "Pina Colada(25) \nSex on the beach(25) \nTequila Sunrise(25) \nBloody Mary(25) ", "U redu", "Odustani");
		   }
		}
		return 1;
	}
	if(dialogid == 301)
	{
	new Float:health;
		if(response)
		{
	        if(listitem == 0)
   			{
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 1);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Vodu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
		}
           if(listitem == 1)
           {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 5);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Kolu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					if(listitem == 2)
                    {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 5);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Kisjelu vodu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					return 1;
	}
	if(dialogid == 302)
	{
	new Float:health;
		if(response)
		{
	        if(listitem == 0)
   			{
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 10);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Lozu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
		}
           if(listitem == 1)
           {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 15);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Vodku.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					if(listitem == 2)
                    {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 100);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Sampanjac.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					if(listitem == 3)
                    {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 15);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Jabukovacu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					return 1;
	}
	if(dialogid == 303)
	{
	new Float:health;
		if(response)
		{
	        if(listitem == 0)
   			{
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 4);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Tursku Kafu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
		}
           if(listitem == 1)
           {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 5);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Cappuccino.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					if(listitem == 2)
                    {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 5);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Nes Kafu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					return 1;
	}
	if(dialogid == 304)
	{
	new Float:health;
		if(response)
		{
	        if(listitem == 0)
   			{
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 25);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Martini.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
		}
           if(listitem == 1)
           {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 20);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Limoncello.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					if(listitem == 2)
                    {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 20);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Cokoladni liker.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					return 1;
	}
	if(dialogid == 305)
	{
	new Float:health;
		if(response)
		{
	        if(listitem == 0)
   			{
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 15);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije NIKSICKO Pivo.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
		}
           if(listitem == 1)
           {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 10);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Jelen Pivo.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					if(listitem == 2)
                    {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 10);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Tuborg.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					return 1;
	}
	if(dialogid == 306)
	{
	new Float:health;
		if(response)
		{
	        if(listitem == 0)
   			{
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 20);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Crno Vino.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
		}
           if(listitem == 1)
           {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 20);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Bjelo Vino.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					if(listitem == 2)
                    {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 25);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Pro Cored.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					return 1;
	}
	if(dialogid == 307)
	{
	new Float:health;
		if(response)
		{
           if(listitem == 0)
           {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 25);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Pina Colada.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
				}
					if(listitem == 1)
                    {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 25);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Sex on the beach.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					if(listitem == 2)
                    {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 25);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Tequila Sunrise.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					if(listitem == 3)
                    {
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeGivePlayerMoney(playerid, - 25);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije Bloody Mary.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					return 1;
	}


a evo sta je u komandi

if(strcmp(cmd, "/drink", true) == 0 || strcmp(cmd, "/naruci", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(IsAtBar(playerid))
	        {
	            if(PlayerDrunk[playerid] < 10)
	            {
                ShowPlayerDialog(playerid, 300, DIALOG_STYLE_LIST, "MENI PICA", "Nealkoholna Pica \nAlkoholna Pica \nKafe \nLikeri \nPiva \nVina \nKokteli ", "U redu", "Odustani");
            }
            return 1;
        }
	        else
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   Niste blizu bara!");
	            return 1;
	        }
	    }
	    return 1;
	}