[HELP] Dialog Question. - 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: [HELP] Dialog Question. (
/showthread.php?tid=202360)
[HELP] Dialog Question. - Larsey123IsMe - 23.12.2010
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"
Re: [HELP] Dialog Question. -
Retardedwolf - 24.12.2010
What the hell are you trying to do in the second code?
Re: [HELP] Dialog Question. -
Hiitch - 24.12.2010
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.
Re: [HELP] Dialog Question. -
Retardedwolf - 24.12.2010
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.