Strange bug
#1

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
Reply
#2

bump
Reply
#3

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
Reply
#4

Show your compile log.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)