Dialog Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog Problem (
/showthread.php?tid=134094)
Dialog Problem -
BloodyEric - 15.03.2010
Hey all, my first try with dialogs..
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid==2500)
{ if (response==1)
{
SendClientMessage(playerid, 0x00000FFF, "Jetzt mьsste was kommen");
ShowPlayerDialog(playerid, 2501, DIALOG_STYLE_LIST, "Fahrzeug auswдhlen", "Sanchez \nQuad \nVortex \nMonster Truck \nBandito \nKart","Los", "Abbrechen");
}
}
Neither the SendClientMessage nor the Dialog 2501 appears, but dialog 2500 does :/
Hope someone has an idea..
Bloody
Re: Dialog Problem -
deather - 15.03.2010
Is dialog 2500 a List box or a Input box?
If it is LIST_BOX
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid==2500 && response)
{
if (listitem==1)
{
SendClientMessage(playerid, 0x00000FFF, "Jetzt mьsste was kommen");
ShowPlayerDialog(playerid, 2501, DIALOG_STYLE_LIST, "Fahrzeug auswдhlen", "Sanchez \nQuad \nVortex \nMonster Truck \nBandito \nKart","Los", "Abbrechen");
}
}
Re: Dialog Problem -
BloodyEric - 15.03.2010
2500 is Message Box
Re: Dialog Problem -
Deat_Itself - 15.03.2010
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid==2500)
{
if (response)
{
SendClientMessage(playerid, 0x00000FFF, "Jetzt mьsste was kommen");
ShowPlayerDialog(playerid, 2501, DIALOG_STYLE_LIST, "Fahrzeug auswдhlen", "Sanchez \nQuad \nVortex \nMonster Truck \nBandito \nKart","Los", "Abbrechen");
}
}
return 1;
}
try this
Re: Dialog Problem -
BloodyEric - 15.03.2010
Ђ: solved