14.05.2014, 19:44
I have a simple question, which relates to the db_free_result(); function. Is db_free_result(); used only after retrieving a result? Such as:
Or is it to be used during the use of db_query as well (as shown as an example on the Wiki page)?
I've seen numerous examples and different usages, so I really don't understand where and when to use this function. Thanks.
pawn Код:
new string[128], DBResult:result;
format(string, sizeof(string), "SELECT * FROM `TABLE` WHERE `VALUE` = '%s'", EscapeString("example"));
result = db_query(Database, string);
db_free_result(result); // <---
I've seen numerous examples and different usages, so I really don't understand where and when to use this function. Thanks.