MYsql query
#1

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?
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)