SA-MP Forums Archive
how to control INPUT - 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: how to control INPUT (/showthread.php?tid=239002)



how to control INPUT - whitedragon - 12.03.2011

Is there any way that Server can check what player is typing into dialog input?


Re: how to control INPUT - viKKmaN - 12.03.2011

Yes, under your OnPlayerDialogResponse() callback, the variable called "inputtext" stores the information intered into DIALOG_STYLE_INPUT, or the content of the row for DIALOG_STYLE_LIST.


Re: how to control INPUT - whitedragon - 12.03.2011

But before client send dialog into server?
because responding will come up when i hit button


Re: how to control INPUT - Sinner - 12.03.2011

Quote:
Originally Posted by whitedragon
Посмотреть сообщение
But before client send dialog into server?
because responding will come up when i hit button
What would you need that for? I guess what you're looking for is something like an OnChange() callback, which doesn't exist in SAMP as far as I know.


Re: how to control INPUT - whitedragon - 12.03.2011

i mean dialog for Password...


Re: how to control INPUT - viKKmaN - 12.03.2011

Just resend the dialog if something is wrong...


Re: how to control INPUT - whitedragon - 12.03.2011

But is it possible to do with plugins (Somehow)