What the difference - 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: What the difference (
/showthread.php?tid=164608)
What the difference -
Kitten - 01.08.2010
Solved
Re: What the difference -
ScottCFR - 01.08.2010
I don't know, I was taught to use static. So that's what I recommend
Re: What the difference -
Kar - 01.08.2010
nvm look below <.>
Re: What the difference -
bigcomfycouch - 01.08.2010
Static variables are not removed from memory when a function ends. A global static variable is pretty much useless because it retains its value anyways.
Re: What the difference -
willsuckformoney - 01.08.2010
i uses theses
pawn Код:
static gTeam[MAX_PLAYERS];
new gPlayerClass[MAX_PLAYERS];