strfind, strcmp
#9

Its the "Register Login". I defined the ShowPlayerDialog in them, so i dont have to have long lines everywhere.
Also i just debugged the script like this:
pawn Код:
for( new i = 0; i < MAX_FORBIDDEN_NAMES; i ++ )
    {
        printf("%s start loop", GetName(playerid));
        if( strfind( ForbiddenNames[i], GetName(playerid), true ) != -1 )
        {
            printf("%s forbidden name found", GetName(playerid));
            SendClientMessage(playerid, COLOR_ORANGE, " ** We found a forbidden word in your name! Please remove it and re-connect. ");
            printf("%s kicked", GetName(playerid));
            Kick(playerid);
        }
        printf("%s end loop", GetName(playerid));
    }
This is what it shows:
Код:
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop
[18:03:45] Lemmy_Lusion[NL] end loop
[18:03:45] Lemmy_Lusion[NL] start loop // 31 time, but doesnt end
Just the last one doesnt stop.
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)