[HELP] Help me with Dialogs
#1

All greetings. Need your help. How can I compare the text in the window (function: OnDialogResponce) with a variable. For example: Your account is a variable which is equal to 500. And in the window (function: OnDialogResponce) I enter 500. Next comes the effect: if entered correctly - the following window, if is not correct - returning last.What way I can compare inputtext with variable.Sorry for my bad English.
Reply
#2

pawn Код:
if(strval(inputtext) == 500)
{
  // Show next window as the value was correct
}
else
{
  // Show last window as the value was wrong.
}
Reply
#3

Finn. Perhaps you did not understand. While certainly I have not explained. Suppose variable PlayerInfo [playerid] [pNoOB] is equal to 1. and in the window I enter 1. But script wrote what I wrote that I did not Noob. In which case how to compare texts?
Reply
#4

https://sampwiki.blast.hk/wiki/Strval

https://sampwiki.blast.hk/wiki/Strcmp
Reply
#5

Thaks For all. Close theme.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)