Q's of: static, variable, and return functions
#6

pawn Код:
static
    j = 1;
This will set j to 1 when the script starts, it's ignored in the loop.
It's like a global variable that has initial value (usually 0), but the difference is that you can use global variable anywhere, but static local variable has a scope.
Reply


Messages In This Thread
Q's of: static, variable, and return functions - by ||123|| - 22.07.2011, 10:25
Re: Q's of: static, variable, and return functions - by MadeMan - 22.07.2011, 10:45
Re: Q's of: static, variable, and return functions - by ||123|| - 22.07.2011, 11:35
Re: Q's of: static, variable, and return functions - by Double-O-Seven - 22.07.2011, 11:42
Re: Q's of: static, variable, and return functions - by Grim_ - 22.07.2011, 11:46
Re: Q's of: static, variable, and return functions - by MadeMan - 22.07.2011, 11:53
Re: Q's of: static, variable, and return functions - by ||123|| - 22.07.2011, 12:01
Re: Q's of: static, variable, and return functions - by Roko_foko - 22.07.2011, 12:16

Forum Jump:


Users browsing this thread: 1 Guest(s)