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.