19.03.2013, 05:27
Ted67, ты данные неправильно получаешь.
new time[32];
cache_get_row(0, 34, time);
format(SQL,64,"Result: %s",time),Message(p,-1,SQL);
mysql_fetch_row(time);
>> cache_get_data( Connection handle: 1 ) >> mysql_fetch_row_format( Connection handle: 1 ) CMySQLHandler::FetchRow() - You cannot call this function now. (Reason: Empty Result) |
public MySQLExample() {
mysql_store_result();//Вот эта функция извлекает данные из результата
if (mysql_num_rows() > 0) {
new result[128], time;
while (mysql_fetch_row_format(result, "|")) {
sscanf(result, "p<|>i", time);
//в time будет необходимое тебе значение
}
}
mysql_free_result(dbHandler);
}
Так тяжело внимательно изучить документацию?
pawn Код:
|
ProcessQueryThread(OnTest) - Data caching enabled. CMySQLHandler::StoreResult() - Result was stored. CMySQLHandler::FreeResult() - Result was successfully free'd. CMySQLHandler::ProcessQueryThread() - Data is getting passed to ->ProcessTick() OnTest(i) - Threaded function called. >> mysql_store_result( Connection handle: 1 ) CMySQLHandler::StoreResult() - No data to store. >> mysql_num_rows( Connection handle: 1 ) CMySQLHandler::NumRows() - You cannot call this function now. (Reason: Dead Connection) >> mysql_free_result( Connection handle: 1 ) CMySQLHandler::FreeResult() - The result is already empty. ProcessTick() - The cache has been cleared. |