01.06.2011, 18:36
Hey, I have encountered a problem and what is wrong in this script?
Mysql log:
Please help!
pawn Code:
new query[256];
format( query, 256, "SELECT SQLid FROM `transportas` WHERE Model = '%d' AND cOwner = '%s'", CarInfo[playerDB[playerid][tr]][cModel],CarInfo[playerDB[playerid][tr]][cOwner] );
mysql_query( query );
mysql_store_result( );
CarInfo[playerDB[playerid][tr]][vSQLid] = strval( query );
mysql_free_result( );
Code:
[21:36:04] CMySQLHandler::Query(SELECT SQLid FROM `transportas` WHERE Model = '468' AND cOwner = 'Carl_Solts') - Successfully executed. [21:36:04] >> mysql_store_result( Connection handle: 1 ) [21:36:04] CMySQLHandler::StoreResult() - Result was stored. [21:36:04] >> mysql_free_result( Connection handle: 1 ) [21:36:04] CMySQLHandler::FreeResult() - Result was successfully free'd.