mysql_fetch_field_row = 0 for all
#1

hello, i have a problem in my gamemode.

when i take the function "mysql_fetch_field_row" for "PlayerInfo", the result is "0" for all.... i don't know why.

the script:
PHP код:
        format(stringsizeof(string), "SELECT * FROM `users` WHERE username = '%s'"gUsername[playerid]);
        
mysql_query(string);
        
mysql_store_result();
        if(
mysql_num_rows() > 0)
        {
            
mysql_fetch_field_row(field"id"); User[playerid][pSQL] = strval(field);
        }
        
mysql_free_result(); 
so User[playerid][pSQL] = strval(field); = 0 but it is not normal

mysql log:
PHP код:
[11:31:28CMySQLHandler::Query(SELECT FROM `usersWHERE username 'Angela') - Successfully executed.
[
11:31:28] >> mysql_store_resultConnection handle)
[
11:31:28CMySQLHandler::StoreResult() - Result was stored.
[
11:31:28] >> mysql_num_rowsConnection handle)
[
11:31:28CMySQLHandler::NumRows() - Returned 1 row(s)
[
11:31:28] >> mysql_fetch_field_rowConnection handle)
[
11:31:28CMySQLHandler::FetchField("id") - 
[
11:31:28] >> mysql_queryConnection handle
sorry for my bad english, thanks
Reply


Messages In This Thread
mysql_fetch_field_row = 0 for all - by Rubey - 21.10.2016, 09:53
Re: mysql_fetch_field_row = 0 for all - by Konstantinos - 21.10.2016, 11:04
Re: mysql_fetch_field_row = 0 for all - by Rubey - 21.10.2016, 14:38
Re: mysql_fetch_field_row = 0 for all - by Rubey - 23.10.2016, 09:21

Forum Jump:


Users browsing this thread: 1 Guest(s)