Posts: 646
Threads: 148
Joined: Feb 2010
Reputation:
0
i saw alot codes example
new @var...
what that @ does mean? if someone can give me some examples and informations, thanks!
Posts: 2,187
Threads: 81
Joined: Aug 2011
Reputation:
0
@var? Never heard of it..
Posts: 2,187
Threads: 81
Joined: Aug 2011
Reputation:
0
06.12.2012, 12:07
(
Последний раз редактировалось RajatPawar; 07.12.2012 в 12:39.
)
EDIT: Global variable.
Read below..
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
Id also like to know people use it. Afaik it wont have any effect, global variables are global and so "public", you cant access filterscript variables even if they are public, and the "host program" wont ever access any public variables of the script. So theres no reason at all why you should make variables public for samp scripts. Maybe the guys who did that just used it as some special symbol in variable naming.
BTW the code snippet from ****** doesnt use public variables, the @ isnt the first symbol of the name, so it is just treated as part of the variable/tag name. The @ just has a meaning when it is the very first symbol.
Posts: 1,177
Threads: 27
Joined: Sep 2011
Reputation:
0
It might be so that variables inside of includes don't interfere with gamemodes/filterscripts.