The online racing simulator
im going to releases a !kickb411s (username) feature
hello all well like i said im going to release it im going to make a simple version Sunday (my time)

code will be in my next post here
#2 - Krayy
That's all good...but what the heck does it mean??
lol u will see
can u help me

9/17/2009 9:12:17 PM -> Unexpected end function in event :MA_KB1 on file : "LFSLapper.SC" at line #1112

Sub MA_KB1()
openPrivButton( "2man212",52,130,5,25,1,12,32,"12");
openPrivButton( "2man212a",32,130,20,10,1,12,32,"12A");
DelayedCommand( 3, MA_KB2 );
EndSub

Sub MA_KB2()
openPrivButton( "2man212a",52,130,20,10,1,9,32,"12A");
DelayedCommand( 3, MA_KB3 );
EndSub

Sub MA_KB3 ( )
openPrivButton( "2man212a",52,130,20,10,1,14,32,"12A");
EndSub
#5 - Krayy
Quote from Fire_optikz001 :can u help me

9/17/2009 9:12:17 PM -> Unexpected end function in event :MA_KB1 on file : "LFSLapper.SC" at line #1112

Try changine the Sub defines to:

Sub MA_KB1()
openPrivButton( "2man212",52,130,5,25,1,12,32,"12");
openPrivButton( "2man212a",32,130,20,10,1,12,32,"12A");
DelayedCommand( 3, MA_KB2 );
EndSub

Sub MA_KB2( $KeyFlags, $id )
openPrivButton( "2man212a",52,130,20,10,1,9,32,"12A");
DelayedCommand( 3, MA_KB3 );
EndSub

Sub MA_KB3 ( $KeyFlags, $id )
openPrivButton( "2man212a",52,130,20,10,1,14,32,"12A");
EndSub

Any Sub called from a button requires the 2 parameters KeyFlags and id. The first one doesnt need them as it would be called as a fucntion from a command, not a button.
Quote from Fire_optikz001 :can u help me

9/17/2009 9:12:17 PM -> Unexpected end function in event :MA_KB1 on file : "LFSLapper.SC" at line #1112

Sub MA_KB1()
openPrivButton( "2man212",52,130,5,25,1,12,32,"12");
openPrivButton( "2man212a",32,130,20,10,1,12,32,"12A");
DelayedCommand( 3, MA_KB2 );
EndSub

Sub MA_KB2()
openPrivButton( "2man212a",52,130,20,10,1,9,32,"12A");
DelayedCommand( 3, MA_KB3 );
EndSub

Sub MA_KB3 ( )
openPrivButton( "2man212a",52,130,20,10,1,14,32,"12A");
EndSub

Hi,
You can't use openprivbutton in this context, After a DelayedCommand is it not a player event anymore.
I had the same problem with the restart timer after the race.


9/18/2009 12:44:43 PM -> Syntax error in cfg file "server 6 5_844.lpr" at line #1634
You can't use openprivbutton in this context, not a player event
Function 'ma_kb2' script aborted

darn well i got another way
maybe
i will find out when i get home
#8 - Krayy
Good point re the delayedcommand...maybe if you create a countdown button with 3 secs on it, but make it clear with no text, then it will act as a close/open timer
Quote from Krayy :Good point re the delayedcommand...maybe if you create a countdown button with 3 secs on it, but make it clear with no text, then it will act as a close/open timer

Thx, its works .


openPrivButton( "txt",0,0,1,1,1,10,0," ",start_race ); [COLOR=blue]# 10sec timer[/COLOR]

Sub start_race( $KeyFlags,$id )
cmdLFS( "/restart" );
EndSub


FGED GREDG RDFGDR GSFDG