02.06.2011, 17:27
You're returning values straight after the (if) statement.
Doing this:
Will return the Client Message, and nothing else. You're stopping the function at that point. That means anything that's written later on will be ignored.
The correct method:
Doing this:
pawn Код:
if(!(3 <= strlen(inputtext) <= 20)) return SendClientMessage(playerid, RED, "The password you supplied is either too short or too long.");
The correct method:
pawn Код:
if(!(3 <= strlen(inputtext) <= 20))
{
// code...
return whatever;
}