native mysql_function_query(connectionHandle, query[], bool:cache, callback[], format[], {Float,_}:...);
#define LOAD_mysql_function_query(%1) \
if(!LoadInfo[Loaded]) LoadInfo[Query]++;\
mysql_function_query(%1)
#if defined _ALS_mysql_function_query
#undef mysql_function_query
#else
#define _ALS_mysql_function_query
#endif
#define mysql_function_query LOAD_mysql_function_query
#define LOAD_mysql_function_query(%1) \
if(!LoadInfo[Loaded]) LoadInfo[Query]++;\ mysql_function_query(%1) looks odd to me. Try this: #define LOAD_mysql_function_query(%1) if(!LoadInfo[Loaded]) mysql_function_query(%1), LoadInfo[Query]++ or perhaps even #define LOAD_mysql_function_query(%1); if(!LoadInfo[Loaded]) { mysql_function_query(%1); LoadInfo[Query]++; } |
#define LOAD_mysql_function_query(%1) \
if(!LoadInfo[Loaded]) LoadInfo[Query]++;\
mysql_function_query(%1)
#define LOAD_mysql_function_query(%1) \
if(!LoadInfo[Loaded]) {LoadInfo[Query]++;} mysql_function_query(%1)
#define mysql_function_query LOAD_mysql_function_query
// native MySQLSelectStrOrderBy(query, len, select[], table[], field[], fieldval, order[],bool:cache, callback[], format[],{Float, _}:...);
#define MySQLSelectStrOrderBy(%0,%1,%2,%3,%4,%5,%6,%7,%8,%9) \
new val2[256]; \
mysql_real_escape_string(%5,val2); \
format(%0, %1, "SELECT %s FROM `%s` WHERE `%s` = '%s' ORDER BY %s", %2,%3,%4,%5,%6); \
mysql_function_query(ConnectionHandle,%0,%7,%8,%9)
LOAD_mysql_function_query is calling mysql_function_query which then calls LOAD_mysql_function_query again and it keeps on going in a circle.
|
stock LOAD_mysql_function_query(connectionHandle, query[], bool:cache, callback[], format[], {Float,_}:...)
{
if(!LoadInfo[Loaded]) LoadInfo[Query]++;
return mysql_function_query(connectionHandle, query, cache, callback, format, /*for pass the other elements i need to use the #emit function but i don't know how*/);
}
#if defined _ALS_mysql_function_query
#undef mysql_function_query
#else
#define _ALS_mysql_function_query
#endif
#define mysql_function_query LOAD_mysql_function_query