06.02.2012, 09:39
A static global is no different than a new global, except that static variables are always restricted to the file they are in. A static local acts like a global variable (without it actually being global) but only within the function itself. It remembers its value between seperate function calls. The wiki explains this very well: https://sampwiki.blast.hk/wiki/Keywords:Initialisers#static
The const modifier declares the created variable as a constant. This means the variable will not be stored on the stack and that it cannot be modified by code. If you try to modify it the compiler will complain.
The const modifier declares the created variable as a constant. This means the variable will not be stored on the stack and that it cannot be modified by code. If you try to modify it the compiler will complain.