Quote:
Originally Posted by Calgon
mysql_get_field probably is expecting a string as the second parameter.
pawn Code:
new szUnload[10], IsMutedOrNot;
format(checkquery, sizeof(checkquery), "SELECT `muted` FROM `users` WHERE `username` = '%s'", OBanName); mysql_query(checkquery); mysql_store_result(); mysql_retrieve_row(); mysql_get_field("muted", szUnload); --- Error line ---- mysql_free_result(); IsMutedOrNot = strval(szUnload);
Also, as Vince said, you can use mysql_fetch_int which would be more relevant.
|
Thank you alot!
Thanks to everyone who replied too!
.