Posts: 447
Threads: 105
Joined: Feb 2013
Hi,
When i add includes which include a string defined and add it in my gm #include <example> its gives me warning that string must be changed to another name like string2[256]; why everytime i must to change the value or the definition of string?
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
Well, the includes should take care of not leaking their scope. Which exactly do you have in mind?
Posts: 447
Threads: 105
Joined: Feb 2013
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
Oh, yeah, so it's your fault then. A global variable is a variable which is created outside any function (usually near top of the script). You should mark those as global, using some common practice like prefixing names with "g". So, gString.
Posts: 447
Threads: 105
Joined: Feb 2013
Quote:
Originally Posted by Misiur
Oh, yeah, so it's your fault then. A global variable is a variable which is created outside any function (usually near top of the script). You should mark those as global, using some common practice like prefixing names with "g". So, gString.
|
Yeah thanks , but I dont recommend to use fixes.inc anymore its bug the dialogs , for example when someone connect to server they dont see the dialog of login.
Posts: 447
Threads: 105
Joined: Feb 2013
Ammmmmmm well maybe thanks for help +rep!