strfind, strcmp
#5

Im getting kicked by using the name "Lemmy_Lusion[NL]" when im using this piece of code:
pawn Код:
for( new i = 0; i < MAX_FORBIDDEN_NAMES; i ++ )
    {
        if( strfind(ForbiddenNames[i], GetName(playerid), true ) )
        {
            SendClientMessage(playerid, COLOR_ORANGE, " ** We found a forbidden word in your name! Please remove it and re-connect. ");
            Kick(playerid);
            return 1;
        }
    }
I never used the strfind function before, is this the right way?
Note: There are no parts of my name in the forbiddennames variable
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)