GetTickCount() has a negative value.
#1

Hey, Whenever I use GetTickCount(), it gives me a negative value. Also tickcount() gives me a high value but tickcount() should represent the time the SA-MP server was online. I know that a negative number on GetTickCount occurs when you've kept your computer on for a long time, but I never ever exceeded that limit. GetTickCount and tickcount both just don't reset. Anybody knows how to fix this?
Reply
#2

Show the code ..
Reply
#3

Doesn't matter what the code is, GetTickCount just returns a negative value value and tickcount a very high value.

And to check that I just used a command which puts the results to a format and then send it to the player
Reply
#4

Which OS? Linux? Windows?
Try to use both tickcount() and GetTickCount() in a mode without anything in that OS.
timertest.pwn/amx is the best practice.
...

Quote:

Show the code ..

It doesn't matter. Problem is GetTickCount() returning a negative value.
Reply
#5

Quote:
Originally Posted by iFarbod
Посмотреть сообщение
Which OS? Linux? Windows?
Try to use both tickcount() and GetTickCount() in a mode without anything in that OS.
timertest.pwn/amx is the best practice.
...


It doesn't matter. Problem is GetTickCount() returning a negative value.
W8.1 only doesn't work on my own computer.
Reply
#6

Fix for your problem is 'It doesn't matter. problem is your code not GetTickCount()' (i just tested GetTickCount o my computer works fine)
Reply
#7

Quote:
Originally Posted by Jessyy
Посмотреть сообщение
Fix for your problem is 'It doesn't matter. problem is your code not GetTickCount()' (i just tested GetTickCount o my computer works fine)
The code is running on all other computers and gives just an integer above 0, but it doesn't on my own computer. It returns a negative integer. Please don't say anything if you don't even know what's wrong.
Reply
#8

Please test it with timertest gamemode, it's in SA-MP Server Package. Then Show the log.
Reply
#9

https://github.com/Southclaw/Scaveng...ckcountfix.pwn
Reply
#10

Is there any way to reset the GetTickCount itself instead of making a workaround? As I already have a workaround similiar to this one.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)