It seems I've run into a problem when objects enter scientific notation (1.02e+06 stuff like this) where bits and pieces of my code seem to stop functioning. Is there anyway I could combat this by either A.) Resetting the Object count or B.) Making my code function regardless.
Here is a snippet of the error and the code that stopped functioning when it entered scientific notation. It could ultimately end up being a problem with it but I hadn't run into anything beforehand.
Syntax error in input.
eval error >> Add-Ons/Gamemode_SuperKart/server.cs (347): Unable to find object: '1.5679e+006'
BackTrace:
% attemp
% attempting to call function 'setVelocity'
Syntax error in input.
eval error >> attempting to call function 'setVelocity'
BackTrace:
% Ba
% BackTrace: ->[GameModeSpeedKartPackage]VehicleData::onEnterLiquid->[GameModeSpee
Syntax error in input.
eval error >> BackTrace: ->[GameModeSpeedKartPackage]VehicleData::onEnterLiquid->[GameModeSpee
BackTrace:
% dK
% dKartPackage]Player::SSKRespawn
Syntax error in input.
eval error >> dKartPackage]Player::SSKRespawn
And the code block in question
function vehicleData::onEnterLiquid(%a, %obj, %coverage, %type)
{
if((%obj.getClassName() $= "WheeledVehicle" || %obj.getClassName() $= "FlyingVehicle" || %obj.getClassName() $= "AIPlayer") && %obj.getControllingObject().client.restorePoint !$= "")
{
%player = %obj.getControllingObject();
if(isObject(%player))
%player.SSKRespawn(%obj);
}
else
{
%obj.finalExplosion();
%obj.getControllingObject().kill();
}
parent::onEnterLiquid(%a, %obj, %coverage, %type);
}
In the context, this happened on players and vehicles that were still alive and still existed from what I've been told.