Hello,
I have a problem with resetting drift score after passing the 1st check point. Here is my code :
End here is the error what gives in log file !
So how the code looks like to be workable ?
Thx for any comment !
I have a problem with resetting drift score after passing the 1st check point. Here is my code :
<?php
CatchEvent OnSplit1( $userName ) # Player event
$DriftScore = GetCurrentPlayerVar( "DriftScore" );
$LastDriftScore = GetCurrentPlayerVar( "LastDriftScore" );
IF ( $DriftScore > 0 )
THEN
SetCurrentPlayerVar( "DriftScore", 0 );
ENDIF
IF ( $LastDriftScore > 0 )
THEN
SetCurrentPlayerVar( "LastDriftScore", 0 );
ENDIF
EndCatchEvent
?>
<?php
5/4/2012 1:18:12 PM -> Warning var "DriftScore" is readonly, not set
5/4/2012 1:18:12 PM -> Warning var "LastDriftScore" is readonly, not set
?>
Thx for any comment !