Hi i am getting this error when the race get canceled when no one join it
here's the line 64
P.S Also i tried Pickup.Remove(); but giving the same error
here's the line 64
Code Select
function closerace() {
Message( "Race cancelled!" );
race = false;
racestart = false;
racecount = 0;
Vehicle1.Remove();
Vehicle2.Remove();
Vehicle3.Remove();
Vehicle4.Remove();
Checkpoint0.Remove();
Checkpoint1.Remove();
Checkpoint2.Remove();
Checkpoint3.Remove();
Checkpoint4.Remove();
Checkpoint5.Remove();
Checkpoint6.Remove();
Checkpoint7.Remove();
Checkpoint8.Remove();
Checkpoint9.Remove();
Checkpoint10.Remove();
RPickup.Remove();
for( local i=0; i<1000; i++ ){
DestroyMarker( i );
}
local plr;
for( local i=0; i <= GetMaxPlayers(); i++ ){
{
plr = FindPlayer( i );
if ( plr )
{
if( Stats[ plr.ID ].raceplayer )
{
Stats[ plr.ID ].raceplayer = false;
plr.IsFrozen = false;
plr.Pos = Vector( 496.26, -83.9443, 10.0302 );
}
}
}
}
}
P.S Also i tried Pickup.Remove(); but giving the same error