2 Questions about DIALOG_STYLE_INPUT
#3

Quote:
Originally Posted by Desert
When you create a dialog with the input style, what he types will be stored in the inputtext[] in the dialog callback. Then it's simple:

pawn Код:
if(dialogid == ?)
{
if(strlen(inputtext) >= 5)
{
dini_Set(file,"Example",inputtext);
}}
Okay, thanks for that but how can I make the player only
type a specific word. Lets say Male or Female, and if he didn't
type Male or Female he will get an error message.
Reply


Messages In This Thread
2 Questions about DIALOG_STYLE_INPUT - by ViruZZzZ_ChiLLL - 08.06.2010, 05:13
Re: 2 Questions about DIALOG_STYLE_INPUT - by Desert - 08.06.2010, 06:07
Re: 2 Questions about DIALOG_STYLE_INPUT - by ViruZZzZ_ChiLLL - 08.06.2010, 07:23
Re: 2 Questions about DIALOG_STYLE_INPUT - by MadeMan - 08.06.2010, 08:11
Re: 2 Questions about DIALOG_STYLE_INPUT - by ViruZZzZ_ChiLLL - 08.06.2010, 08:19
Re: 2 Questions about DIALOG_STYLE_INPUT - by ViruZZzZ_ChiLLL - 08.06.2010, 08:53
Re: 2 Questions about DIALOG_STYLE_INPUT - by Joe_ - 08.06.2010, 09:42

Forum Jump:


Users browsing this thread: 1 Guest(s)