Register/ Login Help
#3

Quote:
Originally Posted by kamzaf
Посмотреть сообщение
pawn Код:
else if(sscanf(inputtext, "s[128]", inputtext))
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}You must enter a password to procceed.");
                ShowDialog(playerid, 2);
                return 1;
            }
sscanf on a dialog o.O

use this:

pawn Код:
//dont need the else if, just write if(blah blah)
if(strlen(inputtext) <= 0 || strlen(inputtext) > 68)// change the 68 to the max length of the password.
{
     SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}You must enter a password to procceed.");
     ShowDialog(playerid, 2);
     return 1;
}
Thanks but, the thing is If a user types in any password (correct or not) it allows them to log-in.
Reply


Messages In This Thread
Register/ Login Help - by Joshman543 - 19.03.2013, 19:46
Re: Register/ Login Help - by kamzaf - 19.03.2013, 19:53
Re: Register/ Login Help - by Joshman543 - 19.03.2013, 19:59
Re: Register/ Login Help - by kamzaf - 19.03.2013, 20:08
Re: Register/ Login Help - by Joshman543 - 19.03.2013, 20:11
Re: Register/ Login Help - by Joshman543 - 20.03.2013, 10:29
Re: Register/ Login Help - by Konstantinos - 20.03.2013, 10:38
Re: Register/ Login Help - by Joshman543 - 20.03.2013, 18:33

Forum Jump:


Users browsing this thread: 2 Guest(s)