Ban Check
#9

I'm pretty sure that I'm bumping this but I found the lines directly associated with my problem.
pawn Код:
else if(udb_Exists(PlayerName(playerid)))
    {
        if(dUserINT(PlayerName(playerid)).("Banned") == 1)
        {
            SendClientMessage(playerid, COLOR_YELLOW, "===================================[BANNED]====================================");
            SendClientMessage(playerid, COLOR_YELLOW, "This player name has been banned from [Sarcr]");
            SendClientMessage(playerid, COLOR_YELLOW, "The data regarding this ban is unavailable.");
            SendClientMessage(playerid, COLOR_YELLOW, "If you feel that this is a mistake, please write an appeal at www.sa-rcr.com");
            SendClientMessage(playerid, COLOR_YELLOW, "===============================================================================");
            Kick(playerid);
        }
        ShowLoginScreen(playerid);
        return 1;
    }
    else if(!udb_Exists(PlayerName(playerid)))
    {
        ShowRegisterScreen(playerid);
        return 1;
    }
Those lines from my OnPlayerConnect that cause the freeze (neither the console, nor the game freeze/crash/etc. [the gamemode just won't continue to load anything after saying that a ban check was started]). When "ignored" (not sure how to say it but when you do the /* and */) the script works, but I'm unable to log in and I'm not able to use the chat or any commands. According to my OnPlayerText, chat isn't blocked whether one is logged in or not. Currently, I'm making a /login command and a /register command to check and make sure that the login and register functions are working.
Reply


Messages In This Thread
[HELP] Ban Check - by PCheriyan007 - 06.05.2012, 01:55
Re: Ban Check - by ViniBorn - 06.05.2012, 02:54
Re: Ban Check - by [HiC]TheKiller - 06.05.2012, 02:57
Re: Ban Check - by PCheriyan007 - 06.05.2012, 03:14
Re: Ban Check - by [HiC]TheKiller - 06.05.2012, 03:48
Re: Ban Check - by PCheriyan007 - 06.05.2012, 22:06
Re: Ban Check - by Vince - 06.05.2012, 23:06
Re: Ban Check - by PCheriyan007 - 11.05.2012, 00:07
Re: Ban Check - by PCheriyan007 - 11.05.2012, 22:52
Re: Ban Check - by Oscii - 11.05.2012, 23:18
Re: Ban Check - by PCheriyan007 - 11.05.2012, 23:41
Re: Ban Check - by PCheriyan007 - 26.05.2012, 00:18
Re: Ban Check - by nickdodd25 - 26.05.2012, 03:08
Re: Ban Check - by PCheriyan007 - 26.05.2012, 05:13
Re: Ban Check - by nickdodd25 - 26.05.2012, 17:51
Re: Ban Check - by PCheriyan007 - 03.06.2012, 19:22
Re: Ban Check - by PCheriyan007 - 08.06.2012, 02:02

Forum Jump:


Users browsing this thread: 3 Guest(s)