19.08.2015, 22:06
(
Последний раз редактировалось freddiebox; 20.08.2015 в 12:08.
)
So, I want players to enter a certain security code before being able to play. I got this working for now, however it only allows me to add one digit as a code. If I were to make it say a 10 digit code, how would I proceed?
pawn Код:
if(dialogid == DIALOG_ACTIVATION)
{
if(!response) return Kick(playerid);
if(response)
{
if(inputtext[0] == '1')
{
PlayerInfo[playerid][pActivated] = 1;
}
else
{
ShowPlayerDialog(playerid, DIALOG_ACTIVATION, DIALOG_STYLE_INPUT, "Oops! Something went wrong.", "You have entered an incorrect code. Please Try again.", "Activate", "Quit");
}
}
}