Hi, i like to check if a player ist already at the MySQL database when hes connecting.
At the server_print i can see that all is fine (shows the same id's), but at the if loop it dosen't work.
PHP Code:
public client_connect(id)
{
new Sql:mysql = dbi_connect(MYSQL_DATA[0], MYSQL_DATA[1], MYSQL_DATA[2], MYSQL_DATA[3])
new connect_steamid[35]
get_user_authid(id,connect_steamid,35)
new steam_check = dbi_query(mysql, "SELECT steamid FROM stats WHERE steamid = '%s'", connect_steamid)
server_print("%s - %s", steam_check, connect_steamid)
if(connect_steamid[0] == steam_check) {
server_print("ID vorhanden %s",connect_steamid[0])
}
}