GetTickCount() it's buggy?
#7

Edit:
just noticed that was a suggestion not your code
it is because you do this
PHP код:
PVehslot ][ playerid ][ VehicleTimer ] = GetTickCount( ) + DS_TIME;//changed with gettime() 
lets say it's 12:10:10 right now, I exit the veh, your variable saves as 12:11:10 which is current time + DS_TIME (1 min)
you recall it 1 sec later, 12:10:11, you check if 12:11:10-12:10:11 is less than 1 min, which obviously always is !
change that line into
PHP код:
PVehslot ][ playerid ][ VehicleTimer ] = gettime(); 
and change your
PHP код:
                    if( PVehslot ][ ][ VehicleTimer ] - TimeNow DS_TIME 
into
PHP код:

                    
if(TimeNow PVehslot ][ ][ VehicleTimer ]> DS_TIME 
Reply


Messages In This Thread
GetTickCount() it's buggy? - by nGen.SoNNy - 19.10.2015, 11:14
Re: GetTickCount() it's buggy? - by Threshold - 19.10.2015, 11:35
Re: GetTickCount() it's buggy? - by nGen.SoNNy - 19.10.2015, 12:10
Re: GetTickCount() it's buggy? - by Threshold - 19.10.2015, 13:53
Re: GetTickCount() it's buggy? - by PrO.GameR - 19.10.2015, 13:54
Re: GetTickCount() it's buggy? - by nGen.SoNNy - 19.10.2015, 14:07
Re: GetTickCount() it's buggy? - by PrO.GameR - 19.10.2015, 22:13
Re: GetTickCount() it's buggy? - by nGen.SoNNy - 19.10.2015, 22:26
Re: GetTickCount() it's buggy? - by PrO.GameR - 19.10.2015, 22:38
Re: GetTickCount() it's buggy? - by Threshold - 20.10.2015, 01:56

Forum Jump:


Users browsing this thread: 1 Guest(s)