07.07.2015, 17:58
Very nice work. I read all of it and found it very interesting.
But there is one minor problem at "my house" and if you could answer me it would be great!
Recently I started updating my script and I had a problem. The problem was in loops(You can check my issue here https://sampforum.blast.hk/showthread.php?tid=580573 ).
So basically, I am having this loop for MySQL which I am using to load biz.
for(new i, j = cache_num_rows(); i <= j ; i++)
But, that loop loads non-existing row 1 and I get erros like this
If I put my old loop, there are no errors.
for(new i = 0; i < cache_num_rows(); i++)
Point is, everything works great but in mysql log I get these errors because it's trying to load rows that are not there.
What loop should I use then?
But there is one minor problem at "my house" and if you could answer me it would be great!
Recently I started updating my script and I had a problem. The problem was in loops(You can check my issue here https://sampforum.blast.hk/showthread.php?tid=580573 ).
So basically, I am having this loop for MySQL which I am using to load biz.
for(new i, j = cache_num_rows(); i <= j ; i++)
But, that loop loads non-existing row 1 and I get erros like this
Code:
[ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('1') [ERROR] cache_get_field_content_int - invalid datatype
for(new i = 0; i < cache_num_rows(); i++)
Point is, everything works great but in mysql log I get these errors because it's trying to load rows that are not there.
What loop should I use then?