Question.
#1

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?
Reply
#2

Well, the includes should take care of not leaking their scope. Which exactly do you have in mind?
Reply
#3

ah fixes.inc by ******
Reply
#4

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.
Reply
#5

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.
Reply
#6

https://sampforum.blast.hk/showthread.php?tid=292813 - you can disable any fix you want. But maybe there is some reason why they don't show? Who knows. Good luck with your scripting!
Reply
#7

Ammmmmmm well maybe thanks for help +rep!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)