This should work:
Code:
native Result:hrb_query(const query[]);
//....
public plugin_natives()
{
register_native("hrb_query", "hrb_query")
}
public Result:hrb_query(query[])
{
param_convert(1)
new Result:res = dbi_query(g_Sql, query)
return res
}
If none of this is working for you, I suggest outputting values each step of the way and telling me what they are, and what the expected values are. That way we can debug it.
__________________