Posts: 845
Threads: 3
Joined: Jun 2010
Quote:
Originally Posted by Lordzy
You made a mistake here. Simply searching and replacing wouldn't help since cache_get_value_index_int stores the retrieved value in it's third argument.
pawn Code:
native cache_get_value_index_int(row_idx, column_idx, &destination); native cache_get_value_index_float(row_idx, column_idx, &Float:destination);
|
Sorry for the late reply.
I've done this on purpose. I tried to design this tutorial as a step-by-step guide on converting scripts. That's only one step of many. The next step after that one is to fix the return values. Otherwise the regular expressions wouldn't work as intended.
Posts: 14
Threads: 2
Joined: Jan 2016
Reputation:
0
What about mysql_num_rows, mysql_num_rows, mysql_free_result, mysql_fetch_row, mysql_real_escape_string, mysql_store_result, mysql_fetch_row, mysql_retrieve_row, mysql_fetch_field_row functions and soo on..?
Posts: 716
Threads: 92
Joined: May 2018
Quote:
Originally Posted by StRaffael
What about mysql_num_rows, mysql_num_rows, mysql_free_result, mysql_fetch_row, mysql_real_escape_string, mysql_store_result, mysql_fetch_row, mysql_retrieve_row, mysql_fetch_field_row functions and soo on..?
|
mysql_num_rows:
pawn Code:
for(new i, j = cache_num_rows(); i != j; i++)
mysql_free_result:
pawn Code:
new Cache:result = mysql_query(db, query);
cache_delete(result);
I don't remember other functions.