25.02.2014, 18:16
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 );
Debug show me:
Quote:
[21:18:51] CMySQLHandler::FetchField("Namo_Id") - [21:18:51] >> mysql_fetch_field_row( Connection handle: 1 ) |