Thank you. And what if I don't know approximate length of a Text.
Can I determine it somehow and create array appropriate for that string? Lengths of strings I would be using with that function can vary on different conditions. If I would adjust array length to longest string it would be simply a waste of server resources.
edit>
Thats what I'm trying to do
Code:
public Handle:SQLQueryCreate(const sQuery[], any:...)
{
new sText[1024]
vformat(sText, strlen(sQuery), sQuery, 2);
log_amx("[CLIMB][STATS][QUERY] %s", sText)
return SQL_PrepareQuery(g_SqlConnection, sText)
}