Quote:
Originally Posted by kvann
pawn Code:
for(new i, j = cache_num_rows(); i < j ; i++)
When you're using your new loop (i <= j) you're looping until i is equal to number of rows, but row indexes start from 0, not 1. You have to use i < j, so it stops just before it.
|
Okay. What about other loops then? Should I remove "=" from every loop like that or is this only for things like MySQL?