SA-MP Forums Archive
Doubt Mysql - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Doubt Mysql (/showthread.php?tid=648335)



Doubt Mysql - Jokers98s - 20.01.2018

in sqlite db_next_row(); is use in mysql which function is use beside


Re: Doubt Mysql - Rolux - 20.01.2018

There is no such thing in MySQL.

You should loop through the rows like this:

Код:
	new rows;
	cache_get_row_count(rows);

	for( new i; i < rows; i++ )
	{
		// i means the current row here.
		
		cache_get_value_index_int(i,0,ItemData[i][item_sqlid]);
	}