SA-MP Forums Archive
Global variables - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Global variables (/showthread.php?tid=204961)



Global variables - Anteino - 30.12.2010

How can I make sure a variable which I declare in script1.amx is also reachable in script2.amx?

new variable[MAX_PLAYERS]; in the top of the pawn script does not work..


Re: Global variables - Hal - 30.12.2010

I have never had to do that before, well I have something kinda similar but i used a file to save the information and had it read in the second script.


Re: Global variables - Cank - 31.12.2010

use PVars, they're accessable in gamemode and any related filterscript.


Re: Global variables - Anteino - 31.12.2010

Quote:
Originally Posted by Cank
Посмотреть сообщение
use PVars, they're accessable in gamemode and any related filterscript.
YES! thank you

And a happy new year!