cache_get_row_count - 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: cache_get_row_count (
/showthread.php?tid=571011)
cache_get_row_count -
[RO]Five - 15.04.2015
Hi. I want to know how much row i have in _houses table.
if i use
printf("There are %d rows in the current result set.", cache_get_row_count());:
with 0 house: There are 0 rows in the current result set.
with 1 house: There are 0 rows in the current result set.
with 2 houses: There are 0 rows in the current result set.
...
How i can find how many lines are in _houses? because i want to add a new line at the end
Re: cache_get_row_count -
mirou123 - 15.04.2015
Make sure you use a SELECT in a query before you do that.
For example SELECT * FROM `_houses` WHERE 1 = 1
Re: cache_get_row_count -
[RO]Five - 15.04.2015
Oh.. thanks .. now, it's working.
+REP!