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.