Hello, i have little problem. I wrote simple registration plugin wich uses mysql to store info, kicks players who didn't register, or setinfo their passwords, and plugin works just fine, but with one issue. When player name is longer than one word such like "hello there" or "new player" plugin does nothing
Code:
PHP Code:
#include <amxmodx>
#include <dbi>
new Sql:mysql
new Result:ieskom
public plugin_init(){
register_plugin("Vartotoju registracija","BETA 2","ZiMiS")
}
public client_putinserver(id){
new name[32], pass[32], pass2[32]
get_user_info(id,"login",pass,31)
get_user_info(id,"name",name,31)
mysql = dbi_connect("localhost","root","","amx")
ieskom = dbi_query(mysql,"SELECT * FROM vartotojai where login = '%s'",name)
if (!ieskom){
server_cmd("kick %s Serveryje reikalinga registracija. Uzsiregistruok: http://cs.anet.lt/regme",name)
} else {
while (dbi_nextrow(ieskom) > 0) {
dbi_result(ieskom, "pass", pass2,31)
}
if (!equal(pass,pass2)){
server_cmd("kick %s Neteisingas slaptazodis. Pasikeiskite: setinfo login ******",name)
}
}
}
public plugin_end(){
dbi_close(mysql)
}
Any ideas?

