[Suggestion] Global Inter-Script Variable Plugin - 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: [Suggestion] Global Inter-Script Variable Plugin (
/showthread.php?tid=244293)
[Suggestion] Global Inter-Script Variable Plugin -
viKKmaN - 26.03.2011
I was wondering if any of the more experienced scripters (incognito, ******, etc.) thought of making a plugin for the sole purpose of enabling global variables to be used between scripts (variables declared in gamemode used in filterscripts)
Declaring Example:
Anyone?
Re: [Suggestion] Global Inter-Script Variable Plugin -
Hal - 26.03.2011
Search GVAR by incognito. Its a plugin.
Re: [Suggestion] Global Inter-Script Variable Plugin -
Mike Garber - 26.03.2011
No need for it, it's built in in SA:MP
https://sampwiki.blast.hk/wiki/Per-player_variable_system
Re: [Suggestion] Global Inter-Script Variable Plugin -
Hal - 26.03.2011
Quote:
Originally Posted by Mike Garber
|
He never mentioned any players except the code, so i just thought he means regular var
Re: [Suggestion] Global Inter-Script Variable Plugin -
viKKmaN - 26.03.2011
Quote:
Originally Posted by Hal
He never mentioned any players except the code, so i just thought he means regular var
|
Yes, I mean regular variables, no PVar, no GVar.
Just declare the variable and use it... no need to Get...() Set...()
Re: [Suggestion] Global Inter-Script Variable Plugin -
Zh3r0 - 26.03.2011
Why we need something else when we have it right in front of our eyes?
Re: [Suggestion] Global Inter-Script Variable Plugin -
Mike Garber - 26.03.2011
GVar is what you're looking for, though. It's not for players only.
https://sampforum.blast.hk/showthread.php?tid=151076
Re: [Suggestion] Global Inter-Script Variable Plugin -
viKKmaN - 26.03.2011
Quote:
Originally Posted by Zh3r0
Why we need something else when we have it right in front of our eyes?
|
Ok, show me how can you initialize an array PlayerInfo[MAX_PLAYERS][pInfo] where pInfo has ~ 100 fields with GVar, and not variable by variable...