SA-MP Forums Archive
[HELP] Help me with Dialogs - 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: [HELP] Help me with Dialogs (/showthread.php?tid=127214)



[HELP] Help me with Dialogs - [EnergY] - 12.02.2010

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.


Re: [HELP] Help me with Dialogs - Finn - 12.02.2010

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



Re: [HELP] Help me with Dialogs - [EnergY] - 12.02.2010

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?


Re: [HELP] Help me with Dialogs - MadeMan - 12.02.2010

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

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



Re: [HELP] Help me with Dialogs - [EnergY] - 12.02.2010

Thaks For all. Close theme.