MySQL problem. - 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)
+--- Thread: MySQL problem. (
/showthread.php?tid=355061)
MySQL problem. -
RebeloX - 28.06.2012
Hello everyone, I'm with a problem in the MySQL inside the public SaveAccounts I had to do a strcat in the meantime each time the player calls the public, it makes an EOS and I lose the data of the player.
In conclusion, each time the public is called it resets the player data, how can I solve this problem?
Thanks.
Re: MySQL problem. -
RebeloX - 29.06.2012
BUMP!
Re: MySQL problem. -
Speed++ - 29.06.2012
Don't bump... "07:38 PM - 08:26 PM..." read the rules.
Re: MySQL problem. -
AndreT - 29.06.2012
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.