#1

Hello. I noticed that this "protection" only go to the first clan to clan but not otherwise. Could you please help me?

PHP код:
    new Cachedb mysql_query(mysql"SELECT * FROM `clans`"); 
    
GetPlayerName(playeridszNamesizeof(szName));
    for(new 
icache_get_row_count (); != j; ++i)
    {
        
cache_get_field_content(i"ID"szString); strval(szString);
        if(
strfind(szNameClanInfo[x][cTag], true) != -|| strfind(ClanInfo[x][cTag], szNametrue) != -1) {
            
SendClientMessage(playeridCOLOR_RED"Your name contains clan tag so you get a kick!");
            
SetTimerEx("KickPlayer"10000"d"playerid);
        }
        return 
1;
    }
    
cache_delete(db); 
Reply


Messages In This Thread
Help - by Edw - 21.08.2015, 20:00
Re: Help - by Edw - 21.08.2015, 22:44
Re: Help - by jamal1992 - 21.08.2015, 22:54
Re: Help - by Edw - 21.08.2015, 23:05
Re: Help - by jamal1992 - 21.08.2015, 23:11
Re: Help - by jamal1992 - 21.08.2015, 23:16

Forum Jump:


Users browsing this thread: 2 Guest(s)