PDA

View Full Version : im going to releases a !kickb411s (username) feature


Fire_optikz001
18th September 2009, 01:39
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

Krayy
18th September 2009, 02:36
That's all good...but what the heck does it mean?? :)

Fire_optikz001
18th September 2009, 03:13
lol u will see

Fire_optikz001
18th September 2009, 04:51
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

Krayy
18th September 2009, 05:21
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.

Tim NL
18th September 2009, 12:04
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.:Looking_a
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

Fire_optikz001
18th September 2009, 13:12
darn well i got another way
maybe
i will find out when i get home

Krayy
19th September 2009, 23:30
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

Tim NL
20th September 2009, 00:56
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 :thumb:.


openPrivButton( "txt",0,0,1,1,1,10,0," ",start_race ); # 10sec timer

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