03.08.2012, 06:42
pawn Код:
case DIALOG_Password: {
if(! Response) {
Kick(PlayerID);
return true;
}
if(3 > strlen(Input) > 100) {
if(3 > strlen(Input)) {
SendMessageToPlayer(PlayerID, ""Embed_White"Invalid password, passwords must contain more than 3 characters.");
DialogShowForPlayer(PlayerID, "Password", "Invalid password, passwords must contain more than 3 characters.");
} else {
SendMessageToPlayer(PlayerID, ""Embed_White"Invalid password, passwords must contain less than 100 characters.");
DialogShowForPlayer(PlayerID, "Password", "Invalid password, passwords must contain less than 100 characters.");
}
} else {
SetPlayerPassword(PlayerID, Input);
SendMessageToPlayer(PlayerID, ""Embed_White"You've successfully registered!");
SetPlayerRegistration(PlayerID, (GetPlayerRegistration(PlayerID) + 1));
PutPlayerInRegistration(PlayerID);
}
return true;
}
PlayerRespondedToDialog(PlayerID, DialogID, Response = false, Input = "");
Custom Functions:
SendMessageToPlayer(PlayerID, Message[], {Float,_}:...);
DialogShowForPlayer(PlayerID, Name[], Error[] = "");
SetPlayerPassword(PlayerID, Password[]);
SetPlayerRegistration(PlayerID, RegistrationID);
GetPlayerRegistration(PlayerID);
PutPlayerInRegistration(PlayerID);
Okay so you don't say I have my function names and/or variables wrong, I've provided a list of the functions you see in the code above.
The problem:
Quote:
if(3 > strlen(Input) > 100) { |
Can anyone tell what I'm doing wrong?