Global variables
#7

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:

pawn Код:
format(query, sizeof(query), "...", ...);
mysql_query(query);
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.
Reply


Messages In This Thread
Global variables - by dusk - 20.07.2013, 06:43
Re: Global variables - by RajatPawar - 20.07.2013, 06:49
Re: Global variables - by dusk - 20.07.2013, 07:03
Re: Global variables - by RajatPawar - 20.07.2013, 07:09
Re: Global variables - by AndreT - 20.07.2013, 07:27
Re: Global variables - by dusk - 20.07.2013, 07:30
Re: Global variables - by MP2 - 20.07.2013, 07:53
Re: Global variables - by AndreT - 20.07.2013, 07:54
Re: Global variables - by dusk - 20.07.2013, 09:14
Re: Global variables - by iggy1 - 20.07.2013, 09:21

Forum Jump:


Users browsing this thread: 1 Guest(s)