Posts: 632
	Threads: 24
	Joined: Aug 2011
	
	
 
	
	
		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?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 632
	Threads: 24
	Joined: Aug 2011
	
	
 
	
	
		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
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 632
	Threads: 24
	Joined: Aug 2011
	
	
 
	
	
		
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.
	
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 245
	Threads: 1
	Joined: May 2009
	
Reputation: 
0
	 
	
	
		Fix for your problem is 'It doesn't matter. problem is your code not GetTickCount()' (i just tested GetTickCount o my computer works fine)
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 632
	Threads: 24
	Joined: Aug 2011
	
	
 
	
	
		
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.
	
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 610
	Threads: 18
	Joined: Jan 2014
	
Reputation: 
0
	 
	
	
		Please test it with timertest gamemode, it's in SA-MP Server Package. Then Show the log.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 2,938
	Threads: 162
	Joined: May 2010
	
	
 
 
	
	
	
		
	Posts: 632
	Threads: 24
	Joined: Aug 2011
	
	
 
	
	
		
Quote:
| 
					Originally Posted by Kar   | 
 Is there any way to reset the GetTickCount itself instead of making a workaround? As I already have a workaround similiar to this one.