SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 12/02/2010, 03:17 PM   #1
[EnergY]
Little Clucker
 
Join Date: Dec 2009
Posts: 47
Reputation: 0
Default [HELP] Help me with Dialogs

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.
[EnergY] is offline  
Old 12/02/2010, 03:19 PM   #2
Finn
High-roller
 
Join Date: Jan 2008
Posts: 1,669
Reputation: 296
Default Re: [HELP] Help me with Dialogs

pawn Code:
if(strval(inputtext) == 500)
{
  // Show next window as the value was correct
}
else
{
  // Show last window as the value was wrong.
}
__________________
Finn is offline  
Old 12/02/2010, 03:23 PM   #3
[EnergY]
Little Clucker
 
Join Date: Dec 2009
Posts: 47
Reputation: 0
Default Re: [HELP] Help me with Dialogs

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?
[EnergY] is offline  
Old 12/02/2010, 04:08 PM   #4
MadeMan
High-roller
 
MadeMan's Avatar
 
Join Date: Jun 2007
Posts: 3,472
Reputation: 231
Default Re: [HELP] Help me with Dialogs

http://wiki.sa-mp.com/wiki/Strval

http://wiki.sa-mp.com/wiki/Strcmp
MadeMan is offline  
Old 12/02/2010, 05:03 PM   #5
[EnergY]
Little Clucker
 
Join Date: Dec 2009
Posts: 47
Reputation: 0
Default Re: [HELP] Help me with Dialogs

Thaks For all. Close theme.
[EnergY] is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use dialogs Torran Help Archive 7 03/03/2010 06:12 PM
About dialogs in FS Xecute Help Archive 1 17/02/2010 09:03 PM
Dialogs Conflict with other Dialogs with different... HydraX Help Archive 33 02/01/2010 12:33 AM
Dialogs Lajko1 Help Archive 4 27/12/2009 10:11 AM
2 Dialogs ? xivo Help Archive 5 26/12/2009 06:47 PM


All times are GMT. The time now is 02:43 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.