What am I doing wrong?
#3

Still not working. I want it so if AccountLocked = "No" then it will allow the login and let them continue playing, however, this is not working..

pawn Код:
forward UpdateBans(playerid);
public UpdateBans(playerid)
{
    if(!strcmp(UserInfo[playerid][AccountLocked], "No", false))
    {
        if(LoggedIn[playerid] == 1) {
            new string[128];
            SendClientMessage(playerid, COLOR_ERROR, "This account is locked!");
            format(string, sizeof(string), "< Reason: %s", UserInfo[playerid][AccountLocked]);
            SendClientMessage(playerid, COLOR_ERROR, string);
            Kick(playerid);
        }
    }
    return 1;
}
The timer is called OnGameModeInit if that piece of information is needed..
Reply


Messages In This Thread
What am I doing wrong? - by Scarred - 17.12.2011, 22:54
Re: What am I doing wrong? - by Scenario - 17.12.2011, 23:31
Re: What am I doing wrong? - by Scarred - 18.12.2011, 00:08
Re: What am I doing wrong? - by Scenario - 18.12.2011, 00:19
Re: What am I doing wrong? - by admantis - 18.12.2011, 00:31
Re: What am I doing wrong? - by Scarred - 18.12.2011, 01:26
Re: What am I doing wrong? - by Calgon - 18.12.2011, 02:38

Forum Jump:


Users browsing this thread: 1 Guest(s)