SA-MP Forums Archive
Help with strfind - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with strfind (/showthread.php?tid=586121)



Help with strfind - Edw - 19.08.2015

Sa-mp.com Hello, can you tell me how can I find out if a player uses the name that connects a clan tag?

I tried something but it does not work:
PHP код:
    new Cachedb mysql_query(mysql"SELECT * FROM `clans` ORDER BY `clans`.`ID` ASC");
     for (new 
icache_get_row_count (); != j; ++i)
    {
        if(
strfind(GetName(playerid), ClanInfo[i][cTag], true) != -1)
        {
            
SendClientMessageToAll(COLOR_RED"work!");
        }
    } 



Re: Help with strfind - Edw - 19.08.2015

resolved