The online racing simulator
LFSLapper Not Working
Event OnConnect()
OpenPrivButton( "logo" ,25,80,80,5,4,-1,16, "^1FBM Racing Server" );
OpenPrivButton( "track" ,25,50,150,15,12,-1,16, "^3The Current Track is ^8" . $Longtrackname
OpenPrivButton( "welc" ,25,50,150,15,12,-1,0,"^7Welcome " . $Nickname . " ^7to the FBM Racing Server !&^2Type ^7!help ^2after leaving garage to see commands." );
OpenPrivButton( "pos" ,25,80,150,10,8,-1,0,"^7Your actual friendly Position (all visitors) : ^7" . $Posabs
. "&^2Your actual League prequalify Position : " . $Posqual . " ^6Estimate Pool : " . $Groupqual
. "&Don't swear on this server"
. "&respect other player"
. "&respect^4 blue ^9 and ^3yellow ^9flags"
. "&otherwise you can be banned "
);
openPrivButton( "clos",78,120,20,10,10,-1,32,"Accept",OnConnectClose );
openPrivButton( "ref",103,120,20,10,10,-1,32,"Deny",OnConnectCloseKick );
EndEvent

Yesterday this worked fine. But now when i start lfslapper it says "OpenPrivButton is not a lapper function"
Also i'm having trouble with placeing the box, anyone have any tutorials on the co ordinates
Quote from -=SB=- :
Event OnConnect()
OpenPrivButton( "logo" ,25,80,80,5,4,-1,16, "^1FBM Racing Server" );
OpenPrivButton( "track" ,25,50,150,15,12,-1,16, "^3The Current Track is ^8" . $Longtrackname
OpenPrivButton( "welc" ,25,50,150,15,12,-1,0,"^7Welcome " . $Nickname . " ^7to the FBM Racing Server !&^2Type ^7!help ^2after leaving garage to see commands." );
OpenPrivButton( "pos" ,25,80,150,10,8,-1,0,"^7Your actual friendly Position (all visitors) : ^7" . $Posabs
. "&^2Your actual League prequalify Position : " . $Posqual . " ^6Estimate Pool : " . $Groupqual
. "&Don't swear on this server"
. "&respect other player"
. "&respect^4 blue ^9 and ^3yellow ^9flags"
. "&otherwise you can be banned "
);
openPrivButton( "clos",78,120,20,10,10,-1,32,"Accept",OnConnectClose );
openPrivButton( "ref",103,120,20,10,10,-1,32,"Deny",OnConnectCloseKick );
EndEvent

Yesterday this worked fine. But now when i start lfslapper it says "OpenPrivButton is not a lapper function"
Also i'm having trouble with placeing the box, anyone have any tutorials on the co ordinates

You should raise this on Lapper forum http://www.lfsforum.net/forumdisplay.php?f=262

However.

This looks like it's from an old version of lapper (v5.7xx?) - have you updated recently, and forgot LFSLapper.lpr file has changed too? In version 5.849, following changed - openPrivBtn in replacement of OpenPrivateButton

Placement of buttons/labels:

IF CODE:
OpenPrivButton( "welc" ,25,50,150,15,12,-1,0,"^7Welcome " .....

Then;

button is called welc (unique name - no other button allowed to be called this)
25 25 (out of 200) from left of screen
50 50 (out of 200) down from top of screen
150 width of button (max size = 200 - button width) you don't want button off screen (so don't do left+width>200)
15 this is height of button (can also be height of text within button - can change if multiline message, as each text line is approx this size)
12 defines spacing in multilines and also acts as a gap top and bottom if only 1 line of text
-1 this is how long button is on for in seconds (you can't get a -1 second, so this means don't switch button off (1 would be 1 second, 2 would be 2 seconds....) until something else happens or you close button with other button
0 this is basically colour of button plus placement of text (0 = clear button with text centred, 16 = light grey button/centred text, 32 = darker button/centred text. Other combinations available (3 colours of buttons as described, plus centred text, left justified text or right justified text)

Hope that helps

FGED GREDG RDFGDR GSFDG