[HELP]Time dialog questions - 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)
+--- Thread: [HELP]Time dialog questions (
/showthread.php?tid=282749)
[HELP]Time dialog questions -
TheBluec0de - 12.09.2011
that we do wrong?
I use Y commands....
Код:
YCMD:ora(playerid, params[], help)
{
#pragma unused params
#pragma unused help
ShowPlayerDialog(playerid, DIALOGO_ORA, DIALOG_STYLE_LIST, "Seleziona l'orario desiderato", "Giorno - 12:00 \nPomeriggio - 18:00 \nSera 21:00 \nNotte - 00:00", "Ok", "Cancella");
return 1;
}
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case 1:
{
switch(listitem)
{
case 0:
{
SetPlayerTime(playerid, 12, 0);
}
case 1:
{
SetPlayerTime(playerid, 18, 0);
}
case 2:
{
SetPlayerTime(playerid, 21, 0);
}
case 3:
{
SetPlayerTime(playerid, 0, 0);
}
}
}
}
}
return 1;
}
Re: [HELP]Time dialog questions -
BlackBank - 12.09.2011
This:
pawn Код:
switch(dialogid)
{
case 1:
To:
pawn Код:
switch(dialogid)
{
case DIALOGO_ORA:
Maybe it works then.
Re: [HELP]Time dialog questions -
TheBluec0de - 12.09.2011
Thank you