MYsql query - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MYsql query (
/showthread.php?tid=554267)
MYsql query -
n00el - 02.01.2015
Hello. How i can select only one value from mysql without callback?
For e.g. in i want to use mysql in a stock withouth any callback, only in the stock.. How?
Re: MYsql query -
Sledgehammer - 02.01.2015
By using the function mysq_query. Make sure you delete its cache. For example;
pawn Код:
stock example
{
new example = mysql_query(conhandle, query[]);
//Your code...
cache_delete();
}
Use cache_delete() if you don't need the query's result anymore or you will experience memory leaks.
More information:
https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_query