Infinite Compile
#3

Quote:
Originally Posted by MP2
Посмотреть сообщение
#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]++; }
is not equal to this

pawn Код:
#define LOAD_mysql_function_query(%1) \
    if(!LoadInfo[Loaded]) LoadInfo[Query]++;\
    mysql_function_query(%1)
perhaps did you mean

pawn Код:
#define LOAD_mysql_function_query(%1) \
    if(!LoadInfo[Loaded]) {LoadInfo[Query]++;} mysql_function_query(%1)
however is this thath causate the problem

pawn Код:
#define mysql_function_query LOAD_mysql_function_query
In my gm I created macros that look like this

pawn Код:
// 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)
in which use the function mysql_function_query already redifined
is what can cause the problem?
Reply


Messages In This Thread
Infinite Compile - by xX_Simon_Xx - 07.03.2013, 20:41
Re: Infinite Compile - by MP2 - 07.03.2013, 22:13
Re: Infinite Compile - by xX_Simon_Xx - 08.03.2013, 13:03
Re: Infinite Compile - by SuperViper - 08.03.2013, 14:19
Re: Infinite Compile - by xX_Simon_Xx - 08.03.2013, 18:17
Re: Infinite Compile - by xX_Simon_Xx - 09.03.2013, 13:22
Re: Infinite Compile - by xX_Simon_Xx - 11.03.2013, 13:05

Forum Jump:


Users browsing this thread: 1 Guest(s)