Dialog Input Help!
#1

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
Reply
#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
#3

Link to Pawno is on my Sig (Single Player Features) the 1.5 One.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)