A simple question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A simple question (
/showthread.php?tid=638215)
A simple question -
StrikerZ - 28.07.2017
Are the PVars which are set in the gamemode can be called in an include or vice versa?
Re: A simple question -
Vince - 28.07.2017
PVars are serverwide, so yes.
Also, for the record: the contents of an included file are copied into the "master" file on compilation. The include directive is more or less a shortcut that tells the compiler: get the contents from this file and copy it to this location.
Re: A simple question -
StrikerZ - 28.07.2017
Quote:
Originally Posted by Vince
PVars are serverwide, so yes.
Also, for the record: the contents of an included file are copied into the "master" file on compilation. The include directive is more or less a shortcut that tells the compiler: get the contents from this file and copy it to this location.
|
Thanks, cheers!
Re: A simple question -
Dayrion - 28.07.2017
Another question about PVar. Are they faster than "basics" variables?
Re: A simple question -
Paulice - 28.07.2017
Quote:
Originally Posted by Dayrion
Another question about PVar. Are they faster than "basics" variables?
|
No!!
Re: A simple question -
Xeon™ - 28.07.2017
No, basics variables are more faster, and uses less memory
as ****** said here
https://sampforum.blast.hk/showthread.php?tid=310287