19.03.2013, 19:53
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;
}
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;
}