mysql doesn't load
#1

pawn Код:
new query[ 500 ];
        new sql[ 300 ];
        new line[ 300 ];
        format( query, sizeof( query ), "SELECT * FROM namai" );
        mysql_query( query );
        mysql_store_result( );
        new
            HiD = 0,
            String[ 228 ];
        while( mysql_fetch_row( line ) )
        {
            mysql_get_field( "Namo_Id", sql );
            HiD = strval( sql );
            nInfo[ HiD ][ namoID ] = strval( sql );
            mysql_get_field( "Savininko_Id", sql );
            nInfo[ HiD ][ savininkoID ] = strval( sql );
HiD is still = 0 after this code, but it should be difrent, becoucse Namo_Id is not 0

Debug show me:
Quote:

[21:18:51] CMySQLHandler::FetchField("Namo_Id") -

[21:18:51] >> mysql_fetch_field_row( Connection handle: 1 )

Reply


Messages In This Thread
mysql doesn't load - by ancezas - 25.02.2014, 18:16
Respuesta: mysql doesn't load - by CuervO - 25.02.2014, 18:21
Re: mysql doesn't load - by ancezas - 25.02.2014, 18:22
Respuesta: mysql doesn't load - by CuervO - 25.02.2014, 18:28
Re: mysql doesn't load - by ancezas - 25.02.2014, 18:34

Forum Jump:


Users browsing this thread: 1 Guest(s)