29.06.2012, 21:27
In a code like this:
You cannot expect this code:
... to finally set the value of variable to 3. It will recreate every time, assigned value 0 by default. Try using the static keyword (search the wiki.sa-mp.com for information) or show us some more of your code so I can give more specific help.
pawn Код:
stock SomeFunction()
{
new variable;
variable ++;
}
pawn Код:
SomeFunction();
SomeFunction();
SomeFunction();