08.01.2012, 08:24
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.
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.