16.05.2015, 08:02
Since there will be only one user with that name, you could do this:
Код:
format(query,sizeof(query),"SELECT * FROM players WHERE user = '%s LIMIT 1'",name(playerid)); mysql_function_query(conn,query,false,"",""); cache_get_field_content(0,"name",playerInfo[playerid][user],conn,128); cache_get_field_content(0,"pass",playerInfo[playerid][pass],conn,128);