#define with function mysql
#1

Hi,

I wanna use #define for add automatically a printf about my request when I use mysql_pquery, can you help me please?

Thanks you
Reply
#2

#define GET_INT(%1,%2) mysql_fetch_field_row(tmp, %2);%1 = strval(tmp)
#define GET_STR(%1,%2) mysql_fetch_field_row(%1, %2)
#define GET_FLOAT(%1,%2) mysql_fetch_field_row(tmp, %2);%1 = floatstr(tmp)

try that
Reply
#3

Try this:

pawn Code:
#define _mysql_pquery(%1,%2,%3,%4,%5) do{mysql_pquery(%1,%2,%3,%4,%5);print(%2);}while(-1)
It will execute the query, then print it on the console.
Reply
#4

Don't work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)