OnPlayerLogin Stops working. (Not MySQL)
#6

Quote:
Originally Posted by Schurman
Посмотреть сообщение
No, you are 100% wrong.

Make sure that tmppass is declared as a string with a size, and isn't empty.
It's not empty.
pawn Код:
new tmppass[64]; // Here it is :p This code looking good?
new playername[MAX_PLAYER_NAME];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
GetPlayerName(playerid, playername, sizeof(playername));
    if(strlen(playername) == 3)
    {
        if(strcmp(playername, "InActive", true) == 0)
        {
            return 0;
        }
        else
        {
                SendClientMessage(playerid, COLOR_LIGHTRED, "Sorry, that name is too short, please change it.");
                Kick(playerid);
            return 1;
        }
    }
         Encrypt(tmppass);
         OnPlayerLogin(playerid,tmppass);
    }
        else
        {
            SendClientMessage(playerid, COLOR_RED, "You chose to leave the server.");
            Kick(playerid);
        }
    }
That's what the main part of it looks like.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)