The online racing simulator
OnSplit1 reset ... Any way ?
Hello all,

I created a topic already with DriftScore reset but I didnt had the solution. Maybe now there is who could help me !

I want that lapper reset the current drift score but I dont know how. I gave some solution for this but no one helped me...

Here is the codes what I tried :


<?php 
CatchEvent OnSplit1
$userName # Player event 
    
IF ( $DriftScore 
    
THEN 
        $DriftScore
=
    
ENDIF 

    IF ( 
$LastDriftScore 
    
THEN 
        $LastDriftScore
=
    
ENDIF 

EndCatchEvent  
?>


then


<?php 
CatchEvent OnSplit1
$userName # Player event
    
$DriftScore GetCurrentPlayerVar"DriftScore" );
    
$LastDriftScore GetCurrentPlayerVar"LastDriftScore" );

    IF ( 
$DriftScore )
    
THEN
        $DriftScore
=0;
    ENDIF

    IF ( 
$LastDriftScore )
    
THEN
        $LastDriftScore
=0;
    ENDIF  
?>

then


<?php 
CatchEvent OnSplit1
$userName # Player event
    
$DriftScore GetCurrentPlayerVar"DriftScore" );
    
$LastDriftScore GetCurrentPlayerVar"LastDriftScore" );
    IF ( 
$DriftScore )
    
THEN
SetCurrentPlayerVar
"DriftScore");

    ENDIF
   IF ( 
$LastDriftScore )
    
THEN
        SetCurrentPlayerVar
"LastDriftScore");
    ENDIF
EndCatchEvent
?>



<?php 
CatchEvent OnSplit1
$userName # Player event
    
IF ( GetCurrentPlayerVar"DriftScore" ) > "0" )
    
THEN

$DriftScore 
0;
SetConfigVar("DriftScore"$DriftScore);
                                    
    ENDIF

    IF ( 
GetCurrentPlayerVar"LastDriftScore" ) > "0" )
    
THEN
        $LastDriftScore 
0;
        
SetConfigVar("LastDriftScore"$LastDriftScore);                    
    ENDIF
EndCatchEvent
?>



<?php 
CatchEvent OnSplit1
$userName # Player event
    
IF ( GetCurrentPlayerVar"DriftScore" ) > "0" )
    
THEN
        setCurrentPlayerVar
"DriftScore""0" );                               
    ENDIF
IF ( 
GetCurrentPlayerVar"LastDriftScore" ) > "0" )
    
THEN
        setCurrentPlayerVar
"LastDriftScore" "0" );
ENDIF
EndCatchEvent
?>



<?php 
CatchEvent OnSplit1
$userName # Player event
    
IF ( GetCurrentPlayerVar"DriftScore" ) > "0" )
    
THEN
        SetUserStoredValue
"DriftScore""0" );                               
    ENDIF
IF ( 
GetCurrentPlayerVar"LastDriftScore" ) > "0" )
    
THEN
        SetUserStoredValue
*!13703958!*( "LastDriftScore" "0" );
ENDIF
EndCatchEvent
?>


Problem what we saw was the Var is read only ...
Sinanjum, Bas-Driver tried to solve that big help to me but without solution. Maybe there is who could ...

FGED GREDG RDFGDR GSFDG