Raised This Month: $ Target: $400
 0% 

Problem with containi function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
itimeheke
Junior Member
Join Date: Dec 2010
Old 01-04-2011 , 15:09   Problem with containi function
Reply With Quote #1

Hi there!

I'm using containi on my function which searches users by name. And it does not work, it passes like even "Alfred" compared to "elli" (TESTED!). This is my code:
PHP Code:
public players_find(szInput[], iPlayersFound[32]) {
    
    if (
strlen(szInput) == 0)
        return 
0;
        
    new 
iPlayers[32];
    new 
iPlayersCountiPlayersFoundCount;
    
get_players(iPlayersiPlayersCount);
    
    for (new 
iiPlayersCounti++ ) {
        new 
szName[32];
        
get_user_name(iPlayers[i], szName31);

        if (
containi(szNameszInput)) {
            
client_print(0print_chat"%s = %s"szInputszName);
            
iPlayersFound[iPlayersFoundCount] = iPlayers[i];
            
iPlayersFoundCount++;
        }
    }
    
    return 
iPlayersFoundCount;
    


Last edited by itimeheke; 01-04-2011 at 15:13.
itimeheke is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode