Skripta:PG
Opis Problema:Ubacio sam dialog za narucit hamburger kod burga ali mi ga nece pokazat :(
Dio Skripte:COMMAND:naruci(playerid, params[])
{
ShowPlayerDialog(playerid, 123456, DIALOG_STYLE_LIST, "{3C9DCE}Drive Trough","Hamburger [5$]\nCheeseburger [7$]\nBigMac [10$]", "Odaberi", "Ponisti");
return 1;
}
if(dialogid == 123456)
{
if(response)
{
if(listitem == 0) //
{
PlayerInfo[playerid][pNarudzba] = 1;
SendClientMessage(playerid, COLOR_YELLOW, "Narucili ste Hamburger | Cijena:{FFFFFF} 5$");
GivePlayerMoney(playerid, -5);
}
if(listitem == 1) //
{
PlayerInfo[playerid][pNarudzba] = 2;
SendClientMessage(playerid, COLOR_YELLOW, "Narucili ste Cheeseburger | Cijena: {FFFFFF}7$");
GivePlayerMoney(playerid, -7);
}
if(listitem == 2) //
{
PlayerInfo[playerid][pNarudzba] = 3;
SendClientMessage(playerid, COLOR_YELLOW, "Narucili ste BigMac | Cijena:{FFFFFF} 10$");
GivePlayerMoney(playerid, -10);
}
}
}
Zasto ne koristis GetPlayerPos ili IsPlayerInRangeOfPoint? Ako ti nece pokazati dialog mozda imas vec neki dialog sa idom 123456?
Citat: Niki poslato Avgust 02, 2011, 15:33:36 POSLE PODNE
Zasto ne koristis GetPlayerPos ili IsPlayerInRangeOfPoint? Ako ti nece pokazati dialog mozda imas vec neki dialog sa idom 123456?
To cu sada ubacit...Nisam imao dialog br 123456
Citat: ναηιâ,,"â,,"α.αмχâ—,, â,,–¹ poslato Avgust 02, 2011, 15:33:52 POSLE PODNE
ShowPlayerDialog(playerid, 123456, DIALOG_STYLE_LIST, "{3C9DCE}Drive Trough","Hamburger [5$]\nCheeseburger [7$]\nBigMac [10$]", "Odaberi", "Ponisti");
smanji to malo,stavi samo 4 brojke
ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_LIST, "{3C9DCE}Drive Trough","Hamburger [5$]\nCheeseburger [7$]\nBigMac [10$]", "Odaberi", "Ponisti");
Hvala vanilla radi mi!!
Moze katanac