[HELP] Dialog Question.
#1

Why does this work?

pawn Код:
else if(listitem == 11) return ShowPlayerDialog(playerid, 15, DIALOG_STYLE_MSGBOX, "Spectate", "a re you sure you want to spectate that player?", "Yes", "No");
And why does this dont work?

pawn Код:
else if(listitem == 11) return (dialogid == 15);
Because i dont want to open another dialog when i press at "Spectate"
I just want it to "Spectate" --> then he starte spectate



Like it is now...
"Spectate" ---> "Are you sure you want to..." ---> "SPECTATING STARTED"

Like i want it...
"Spectate" ---> "SPECTATE STARTED"
Reply
#2

What the hell are you trying to do in the second code?
Reply
#3

It looks like you're trying to make it go to dialog 15. But I don't think it's the right way to do it, since I haven't seen anyone put parameters for return.
Reply
#4

pawn Код:
else if(listitem == 11) return CallRemoteFunction ( "OnDialogResponse", "dddds", playerid, 15, response, listitem, inputtext );
I'm not sure if that will even work, if it doesn't don't blame me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)