took me a few seconds to upgrade my script from 5.8.4.6
Sub rme( $ids )
$ar_id = SpliToArray( $id$,"&" );
FOREACH( $val IN $ar_id )
RemoveScheduleAction($val["value"]);
ENDFOREACH
EndSub
+-------------------------------+
|Changes from v5.904 to 5.905 |
+-------------------------------+
1. Fix bug on scheduledAction
FOR( $i = 0; $i < 56;$i = $i + 1 )
RemoveScheduleAction( "Number_" . strFormat("{0:00}",$i));
ENDFOR
Sub rme( $ids )
$ar_id = SplitToArray( $ids,"&" );
FOREACH( $val IN $ar_id )
RemoveScheduleAction($val["value"]);
ENDFOREACH
EndSub
Sub removeMySched()
FOR( $i = 1; $i < 55;$i = $i + 1 )
$id = "RaceNight_" . strFormat("{0:00}",$i);
RemoveScheduleAction( $id );
ENDFOR
EndSub
+-------------------------------+
|Changes from v5.904 to 5.906 |
+-------------------------------+
1. Add new player var TotDistMeter that is the distance in meter do by a player
this value is set to 0 when a player connect to the server
You can set this value by SetCurrentPlayerVar( "TotDistMeter" , 10000 );
2. Add new config var
$distToDo = 100;
it is the amount of meter that player must do to trigger new player event OnDistDone, see below
3. Add new event triggered when a player do a certain distance
$distToDo = 100;
Event OnDistDone( $userName ) # Player event
writeline( "100m dist done by " . $userName . " - total dist :" . GetCurrentPlayerVar("TotDistMeter") );
EndEvent
+-------------------------------+
|Changes from v5.906 to 5.910 |
+-------------------------------+
**** CHANGING TO 5.9 BECAUSE OF BIG CHANGE IN GLScript, Very hard coding ****
1. Rewrite a big part of GLScript Parsing and lexer to cache compilation code.
Now very Speed up the execution of the code. Very hard coding
Try !gui one time ( caching at this point ), then type !gui ( very faster )
2. Add new GLScript function
GetListTop( $argv )
$argv is the same meaning arg as !top XRG etc...
$list = GetListTop( $argv );
This command return a 2 dimension arrayVar containing the result of the top
Write a test in your script with dumpVar( $list ) to view all available value
or take a look at tops.lpr the use
3. Create a new script ( to be finished ) for replace builtin command !top with a GLscript command file, you can
modify your top look as you want.
To view this new top type !mytop in chat line
This top is the same as old but only writed in GLScript :-), i remove the builtin code when i finish this
script.
+-------------------------------+
|Changes from v5.910 to 5.911 |
+-------------------------------+
Change LFSLapper.exe and defPitInfo.lpr from previous version
1. Fix error on retreive value in stored DBS
2. Fix error when no car is selected
3. Fix error in defpit.lpr script
+-------------------------------+
|Changes from v5.911 to 5.912 |
+-------------------------------+
Change LFSLapper.exe and LFSLapper.lpr, pitBoard.lpr, who.lpr
1. Fix some error on script due to case sensitivity in GetCurrentPlayerVar And GetPlayerVar
Thank you very much Tim NL
2. who.lpr now present in release