Dialog Problem
#1

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

Reply
#2

You missed " if(response == 0)"
____________________
MY SERVER:

Server forum
-------
Be$t Host for your server : HostingTime Easy control panel with 1Euro for 20 slots.
Reply
#3

No it doesn't work
Reply
#4

For the back button, try using
pawn Код:
if (!response) return
and instead of using case 1, case 2,
try using
pawn Код:
else
Reply
#5

Код:
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
Reply
#6

Try adding this above ShowPlayerDialog
pawn Код:
HidePlayerDialog(playerid,.................................................); //Dialog before..
Reply
#7

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.
Reply
#8

In that
pawn Код:
else
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
Reply
#9

I make it on FS can someone fix it please I will rep him
Reply
#10

here
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)