diff --git a/gamemodes/irresistible/helpers.pwn b/gamemodes/irresistible/helpers.pwn index 91fa43e..0f1f79b 100644 --- a/gamemodes/irresistible/helpers.pwn +++ b/gamemodes/irresistible/helpers.pwn @@ -43,6 +43,31 @@ stock szHugeString[ 2048 ]; stock g_szSprintfBuffer[ 1024 ]; stock tmpVariable; +/* ** Function Hooks ** */ +stock __svrticks__GetTickCount( ) +{ + static + offset = 0; // store the static value here + + new + curr_tickcount = GetTickCount( ); + + if ( curr_tickcount < 0 && offset == 0 ) + { + offset = curr_tickcount * -1; + print( "\n\n*** NEGATIVE TICK COUNT DETECTED... FIXING GetTickCount( )" ); + } + return curr_tickcount + offset; +} + +#if defined _ALS_GetTickCount + #undef GetTickCount +#else + #define _ALS_GetTickCount +#endif + +#define GetTickCount __svrticks__GetTickCount + /* ** Functions ** */ stock SendClientMessageFormatted( playerid, colour, format[ ], va_args<> ) { diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index 1d1d5b6..fa05b72 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -12180,21 +12180,21 @@ public OnPlayerEnterDynamicRaceCP( playerid, checkpointid ) new members = GetRaceMemberCount( raceid ); - printf ("Position : %d, Members : %d", position, members); + // printf ("Position : %d, Members : %d", position, members); if ( position >= 3 || position >= members ) { DestroyRace( raceid ); - print ("Shut race"); + // print ("Shut race"); } return 1; } - printf("Entered Race Checkpoint : {user:%s,veh:%d,biz_veh:%d,valid_biz:%d}", ReturnPlayerName( playerid ), iVehicle, g_isBusinessVehicle[ iVehicle ],Iter_Contains( business, g_isBusinessVehicle[ iVehicle ] )); + // printf("Entered Race Checkpoint : {user:%s,veh:%d,biz_veh:%d,valid_biz:%d}", ReturnPlayerName( playerid ), iVehicle, g_isBusinessVehicle[ iVehicle ],Iter_Contains( business, g_isBusinessVehicle[ iVehicle ] )); if ( p_Class[ playerid ] == CLASS_CIVILIAN && g_isBusinessVehicle[ iVehicle ] != -1 && Iter_Contains( business, g_isBusinessVehicle[ iVehicle ] ) ) { new businessid = g_isBusinessVehicle[ iVehicle ]; - printf("Is Associate : {user:%s,veh:%d,associate:%d}", ReturnPlayerName( playerid ), iVehicle, IsBusinessAssociate( playerid, businessid )); + // printf("Is Associate : {user:%s,veh:%d,associate:%d}", ReturnPlayerName( playerid ), iVehicle, IsBusinessAssociate( playerid, businessid )); if ( ! IsBusinessAerialVehicle( businessid, GetVehicleModel( iVehicle ) ) && IsBusinessAssociate( playerid, businessid ) ) { for ( new i = 0; i < MAX_DROPS; i ++ )