Register error:
#2

You're returning values straight after the (if) statement.
Doing this:
pawn Код:
if(!(3 <= strlen(inputtext) <= 20)) return SendClientMessage(playerid, RED, "The password you supplied is either too short or too long.");
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:
pawn Код:
if(!(3 <= strlen(inputtext) <= 20))
{
     // code...
     return whatever;

}
Reply


Messages In This Thread
Register error: - by Face9000 - 02.06.2011, 17:22
Re: Register error: - by shitbird - 02.06.2011, 17:27
Re: Register error: - by Face9000 - 02.06.2011, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)