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)
+--- Thread: Dialog Problem (
/showthread.php?tid=371716)
Dialog Problem -
RenSoprano - 24.08.2012
Hello guys, I have problem with dialogs if someone can help me I will rep me
And problem is:
1. Dialogs don't response
2. Back button don't work
Here is my pastebin
Re : Dialog Problem -
[M.A]Angel[M.A] - 24.08.2012
You missed " if(response == 0)"
____________________
MY SERVER:
Server forum
-------
Be$t Host for your server :
HostingTime Easy control panel with
1Euro for
20 slots.
Re: Dialog Problem -
RenSoprano - 24.08.2012
No it doesn't work
Re: Dialog Problem -
_Khaled_ - 24.08.2012
For the back button, try using
and instead of using case 1, case 2,
try using
Re: Dialog Problem -
RenSoprano - 24.08.2012
Код:
if(!response)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Donate Menu","VIP Packages\nHouse Items\nCar Items","Choose","Close");
}
This is my back button but it doesn't work
Re: Dialog Problem -
_Khaled_ - 24.08.2012
Try adding this above ShowPlayerDialog
pawn Код:
HidePlayerDialog(playerid,.................................................); //Dialog before..
Re: Dialog Problem -
Riddick94 - 24.08.2012
Try do not use it like that:
pawn Код:
if(dialogid == YOUR_ID && response)
but like that:
pawn Код:
if(dialogid == YOUR_ID)
{
if(!response)return false;
else
{
//code
}
return true;
}
P.S
To work Dialogs faster use a 'switch' for Dialog id's.
Re: Dialog Problem -
_Khaled_ - 24.08.2012
In that
In your case, put
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Donate Menu","VIP Packages\nHouse Items\nCar Items","Choose","Close"); //replace with code here
Re: Dialog Problem -
RenSoprano - 24.08.2012
I make it on FS can someone fix it please I will rep him
Re: Dialog Problem - HuSs3n - 24.08.2012
here