turned out i didnt restart my pc in over a month! gettickcount fix incase it bugs like it did on mine ... on the dedi
This commit is contained in:
parent
09b04b1cff
commit
ea170efba9
@ -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<> )
|
||||
{
|
||||
|
@ -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 ++ )
|
||||
|
Loading…
Reference in New Issue
Block a user