Dialog Input Help! - 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 Input Help! (
/showthread.php?tid=309571)
Dialog Input Help! -
Aira - 08.01.2012
Hey Guys, i'm Scripting the 2.0 of my SPF FS Right now. I'm making FOUR Options, which are
By Command - /cheat
By Text - Cheat
By Dialog - Choose Cheat
By Input - Type Cheat
______
Well, the thing is. I tried doing it but I CANNOT understand the Input. I'm done with the rest, somebody help me please? Thanks in Advance
Re: Dialog Input Help! -
Lee_Percox - 08.01.2012
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
First read that.
Alright so the (!response) in
https://sampwiki.blast.hk/wiki/OnDialogResponse will call if you hit the SECOND button, if you hit the first button it will call (response) or response == 1. People generally use these as cancel buttons and in the code put.
if(!response) {
return 1;
}
If text in OnDialogResponse you can use strval(inputtext) if you were expecting number. Otherwise it's just inputtext.
new iNum;
iNum = strval(inputtext);
Something like so.
...
I am super shit at explaining things but if you give it an attempt and post your code, I am sure we can help correct and explain how we corrected it.
Re: Dialog Input Help! -
Aira - 08.01.2012
Link to Pawno is on my Sig (Single Player Features) the 1.5 One.