20.02.2012, 13:09
(
Последний раз редактировалось AndreT; 20.02.2012 в 13:22.
Причина: Added a missing mysql_store_result(). Thanks for pointing it out!
)
Check if you're passing the right connection parameter to mysql_free_result(). Commands get out of synchronization if you have forgotten to free a result.
Codes like this are a source of problems as well, if there are 0 rows!
Also, why not update your plugin to the newest version?
Codes like this are a source of problems as well, if there are 0 rows!
pawn Код:
// query
mysql_store_result();
if(!mysql_num_rows())
{
// send a message, blabla, whateva
return true;
}
mysql_free_result();

