I have a problem with both contain and containi functions. I have a setup around here that checks players name 0.5 seconds after the client_authorized event and if name matches some pattern, it basically kicks the player. Now the problem is, that both equal and equali functions work great, and both equal and equali do not. if I put something like (very basically)
Code:
new name[32]
get_user_name(id,name,31)
if(containi(name, "Cheater"))
server_cmd("kick #%d Errorneous nickname: Cheater", get_user_userid(id))
this bit above will kick anyone connecting to the server, no matter what their nickname is - "a", "some_nickname" or "hello123" or whatever.
But this bit
Code:
if (equali(name, "killer"))
server_cmd("kick #%d Errorneous nickname: killer", get_user_userid(id))
works perfectly fine.
Where's the problem ?