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 iPlayersCount, iPlayersFoundCount;
get_players(iPlayers, iPlayersCount);
for (new i; i < iPlayersCount; i++ ) {
new szName[32];
get_user_name(iPlayers[i], szName, 31);
if (containi(szName, szInput)) {
client_print(0, print_chat, "%s = %s", szInput, szName);
iPlayersFound[iPlayersFoundCount] = iPlayers[i];
iPlayersFoundCount++;
}
}
return iPlayersFoundCount;
}