strfind, strcmp
#7

Im not getting kicked now, but now my register/login dialog wont show neither. Ive already tried to remove the 'return 1;', but still didnt show the dialog.
pawn Код:
public OnPlayerConnect(playerid)
{
    for( new i = 0; i < MAX_FORBIDDEN_NAMES; i ++ )
    {
        if( strfind( ForbiddenNames[i], GetName(playerid), true ) != -1 )
        {
            SendClientMessage(playerid, COLOR_ORANGE, " ** We found a forbidden word in your name! Please remove it and re-connect. ");
            Kick(playerid);
        }
    }
    if(!fexist(UserPath(playerid)))
    {
        Register
        return 1;
    }
    else if (fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        if( PlayerInfo[playerid][pBanned] == 1 ) return Kick(playerid), SendClientMessage(playerid, COLOR_RED, " ** You are banned and cannot log in! ");
        printf("|| TotalKills: %i || TotalDeaths: %i || TotalKD: %0.2f || Useown: %i ||", PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], Float:floatdiv(PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths]), WeaponInfo[playerid][pUseOwn]);
        Login
        return 1;
    }
Reply


Messages In This Thread
strfind, strcmp - by Wesley221 - 05.09.2011, 15:32
Re: strfind, strcmp - by JaTochNietDan - 05.09.2011, 15:36
Re: strfind, strcmp - by Wesley221 - 05.09.2011, 15:37
Re: strfind, strcmp - by =WoR=Varth - 05.09.2011, 15:38
Re: strfind, strcmp - by Wesley221 - 05.09.2011, 15:48
Re: strfind, strcmp - by =WoR=Varth - 05.09.2011, 15:52
Re: strfind, strcmp - by Wesley221 - 05.09.2011, 15:58
Re: strfind, strcmp - by =WoR=Varth - 05.09.2011, 16:02
Re: strfind, strcmp - by Wesley221 - 05.09.2011, 16:06
Re: strfind, strcmp - by =WoR=Varth - 05.09.2011, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)