Strange bug - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Strange bug (
/showthread.php?tid=88705)
Strange bug -
-Sneaky- - 28.07.2009
I've been staring at this for hours, I can not figure it out, this is what I've got:
http://pastebin.com/d5fd78e3a
At OnPlayerKeyStateChange & OnPlayerText I assign some variables etc, but when I type /savearena some variables are 0.0000 as you can see on the pastebin above. OnPlayerKeyStateChange I did a little debug and it seems fine, none of them prints as 0.0000..
It's like this, you type /createarena then do the whole OnPlayerKeyStateChange stuff then the OnPlayerText stuff and then type /savearena to save it into mysql, I'm not resetting any variables or anything so why is it 0.0000
Re: Strange bug -
-Sneaky- - 29.07.2009
bump
Re: Strange bug -
-Sneaky- - 29.07.2009
Ok, I found out after doing:
pawn Код:
strmid(jData[playerid][A_NAME], text, 0, strlen(text), 128);
It makes some variables 0.0000, I don't understand why
Re: Strange bug -
paytas - 29.07.2009
Show your compile log.