21.04.2017, 19:44
Well you need to be little more specific , there two versions , r33+ or r40+ , this two are different
For r33+:
https://sampwiki.blast.hk/wiki/MySQL/R33..._get_row_count
For r40+:
https://sampwiki.blast.hk/wiki/MySQL/R40..._get_row_count
For this versions, the parameters of function differ
And the check depends , if you only expect to select only one row from databse , then yes is correct , but if there is more rows you need to change to
For r33+:
https://sampwiki.blast.hk/wiki/MySQL/R33..._get_row_count
For r40+:
https://sampwiki.blast.hk/wiki/MySQL/R40..._get_row_count
For this versions, the parameters of function differ
And the check depends , if you only expect to select only one row from databse , then yes is correct , but if there is more rows you need to change to
Код:
if(row > 0)