Quote:
|
Originally Posted by MenaceX^
I suppose you forgot samp_mysql_fetch_row, and I'd rather do this that way:
pawn Код:
while(samp_mysql_fetch_row(resultline)) { // the strtok stuff. }
|
I didn't forget it, it is in there, I basically used the default query system back when I knew nothing about MySQL, and now I'm looking for reasons for heavy resource usage and am assuming a loop is going on longer than it should be, I'm going to log them to try to determine a cause but doesn't hurt to improve the coding too.
So the code you posted replaces the 3 MySQL lines:
pawn Код:
samp_mysql_query(query);
samp_mysql_store_result();
samp_mysql_fetch_row(result);
right?