19.10.2015, 22:13
Edit:
just noticed that was a suggestion not your code
it is because you do this
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
and change your
into
just noticed that was a suggestion not your code
it is because you do this
PHP код:
PVeh[ slot ][ playerid ][ VehicleTimer ] = GetTickCount( ) + DS_TIME;//changed with gettime()
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 код:
PVeh[ slot ][ playerid ][ VehicleTimer ] = gettime();
PHP код:
if( PVeh[ slot ][ i ][ VehicleTimer ] - TimeNow < DS_TIME )
PHP код:
if(TimeNow - PVeh[ slot ][ i ][ VehicleTimer ]> DS_TIME )

