using format in my own function?
#2

pawn Код:
public format_mysql_query(const string[],...)
{
    new query[350],sargs[128];
    for(new i = 0; i < numargs(); i++)
    {
        sargs[i] = getarg(i);
    }
    format(query,sizeof(query),string,sargs);
    return mysql_query(query);
}
Untested. Adjust the size of sargs as you see fit if it does work.
Reply


Messages In This Thread
using format in my own function? - by showdown - 13.10.2013, 01:36
Re: using format in my own function? - by Fierro - 13.10.2013, 01:54
Re: using format in my own function? - by showdown - 13.10.2013, 05:05

Forum Jump:


Users browsing this thread: 1 Guest(s)