20.07.2013, 07:53
Having a global string for 'query' would be fine, because you're generally not going to run in to the corruption issue AndreT described, because it's always like this generally:
Same could apply to 'string2', but it's not as safe.
As for how to know when stack overflow happens, I think you get a runtime error in the console, or it simply corrupts other parts of memory. Not sure.
pawn Код:
format(query, sizeof(query), "...", ...);
mysql_query(query);
As for how to know when stack overflow happens, I think you get a runtime error in the console, or it simply corrupts other parts of memory. Not sure.