Dialog Input Help!
#2

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


Messages In This Thread
Dialog Input Help! - by Aira - 08.01.2012, 08:13
Re: Dialog Input Help! - by Lee_Percox - 08.01.2012, 08:24
Re: Dialog Input Help! - by Aira - 08.01.2012, 08:35

Forum Jump:


Users browsing this thread: 1 Guest(s)