strange variable change
#1

how is it possible that a variable is getting random values (even negative) when only incrementing it by 1 every minute (timer) and it can get to 45 at best. I also reset it when timer is killed. WTF?

maybe timerfix plugin is causing this? ...
Reply
#2

If something unexpected happens try to retrace the problem
For that you should print the value of the variable before and after you use it
Reply
#3

yes, i've been thinking about the debug and I'll do it, but I don't know how this could happen
Reply
#4

Quote:
Originally Posted by fordawinzz
Посмотреть сообщение
how is it possible that a variable is getting random values (even negative) when only incrementing it by 1 every minute (timer) and it can get to 45 at best. I also reset it when timer is killed. WTF?

maybe timerfix plugin is causing this? ...
I'm almost 70% sure that it's the tag mismatch causing this, because last time I saw it, it was incrementing a float by 1, then asking it to act as integer. However, no one can give you a perfectly right answer unless we see the code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)