[Suggestion] Global Inter-Script Variable Plugin
#1

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:
pawn Код:
global pName[16];
Anyone?
Reply
#2

Search GVAR by incognito. Its a plugin.
Reply
#3

No need for it, it's built in in SA:MP
https://sampwiki.blast.hk/wiki/Per-player_variable_system
Reply
#4

Quote:
Originally Posted by Mike Garber
Посмотреть сообщение
No need for it, it's built in in SA:MP
https://sampwiki.blast.hk/wiki/Per-player_variable_system
He never mentioned any players except the code, so i just thought he means regular var
Reply
#5

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

Why we need something else when we have it right in front of our eyes?
Reply
#7

GVar is what you're looking for, though. It's not for players only.
https://sampforum.blast.hk/showthread.php?tid=151076
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)