MySQL problem.
#4

In a code like this:
pawn Код:
stock SomeFunction()
{
    new variable;
    variable ++;
}
You cannot expect this code:
pawn Код:
SomeFunction();
SomeFunction();
SomeFunction();
... 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.
Reply


Messages In This Thread
MySQL problem. - by RebeloX - 28.06.2012, 19:38
Re: MySQL problem. - by RebeloX - 29.06.2012, 20:26
Re: MySQL problem. - by Speed++ - 29.06.2012, 20:50
Re: MySQL problem. - by AndreT - 29.06.2012, 21:27

Forum Jump:


Users browsing this thread: 1 Guest(s)