Checking if a string is empty, shouldn't this do it?
#2

PHP код:
if(udb_hash(inputtext) == PlayerInfo[playerid][Password])// THIS HASHES THE PASSWORD, BE SURE TO HAVE WHIRLPOOL
{
    
GivePlayerMoney(playeridPlayerInfo[playerid][Money]); // GIVES MONEY
    
SpawnPlayer(playerid); // SPAWNS PLAYER
}
else
{
    
ShowLoginDialog(playerid); // RESHOWS YOUR DIALOG, CHANGE IF NEEDED
    
SendClientMessage(playeridGREY"[SERVER]: You have entered an incorrect password."); // SAYS INCORRECT PW
    
LoginAttempt[playerid] ++; //ADDS A LOGIN ATTEMPT
    
if(LoginAttempt[playerid] == 2// TO MANY AND HE'S KICKED
    
{
    
LoginAttempt[playerid] = 0;
    
Kick(playerid);
    }

Reply


Messages In This Thread
Checking if a string is empty, shouldn't this do it? - by Dokins - 10.05.2015, 23:55
Re: Checking if a string is empty, shouldn't this do it? - by ChromeAmazing - 11.05.2015, 00:09
Re: Checking if a string is empty, shouldn't this do it? - by Abagail - 11.05.2015, 00:20
Re: Checking if a string is empty, shouldn't this do it? - by MP2 - 11.05.2015, 00:33
Re: Checking if a string is empty, shouldn't this do it? - by Dokins - 11.05.2015, 00:49

Forum Jump:


Users browsing this thread: 3 Guest(s)