The online racing simulator
Quote from Gai-Luron :]In Next Release

groupToArray()

I'm laughing at the irony...and writing a HOWTO on var scope
No no i really write groupToArray .

I also include const token to have the ability to define it

Example of use of const

<?php 
const ISB_C1             1        // you can choose a standard
const ISB_C2             2        // interface colour using
const ISB_C4             4        // these 3 lowest bits - see below
const  ISB_CLICK        8        // click this button to send IS_BTC
const  ISB_LIGHT        16        // light button
const  ISB_DARK         32        // dark button
const  ISB_LEFT         64        // align text to left
const  ISB_RIGHT       128        // align text to rightconst 

openPrivButton ("player_".$userName."_".$id."_remove",$topleft_x+6,$topleft_y+1,
25,5,5,-1,ISB_LEFT ISB_LIGHT,"Remove",Remove_Registered)

more clear than

openPrivButton 
("player_".$userName."_".$id."_remove",$topleft_x+6,$topleft_y+1,
25,5,5,-1,80,"Remove",Remove_Registered)
?>

And i provide a set of const for your use, retreived from insim.txt doc of LFS.


EDIT : Shame on me, this funtion already exist : it's getlistofusersgroup. I forgot this. it's Alzheimer, i'm to old
Hi Guys,
I got this working with a bit of adjusting and this is the button I ended up with that gave me the UserName and ID to delete which works fine now but my problem now is I cannot delete the button because it has currUserName in it.

openPrivButton ("PlayerList_".$currUserName."_".$i."_remove",$topleft_x+31,$topleft_y+1,4,5,5,-1,16,"^3X",Remove_Registered);

WHILE( $i < 46 )
closePrivButton ("PlayerList_".$i."_nickname&PlayerList_".$i."_username&PlayerList_".$currUserName."_".$i."_remove");
$i = $i + 1;
ENDWHILE

SUB PrintUserGroup_Close ( $KeyFlags, $id )
closePrivButton ("h_bg1&h_bg2&click_refresh&click_close&h_nick1&h_nick2&h_nick3&h_user1&h_user2&h_user3&h_x1&h_x2&h_x3");
FOR ($i=0;$i<32;$i=$i+1)
closePrivButton ("PlayerList_".$i."_nickname&PlayerList_".$i."_username&PlayerList_".$currUserName."_".$i."_remove");
ENDFOR
ENDSUB

Any ideas guys...
closePrivButton ("PlayerList_".$currUserName."_".$i."_remove");

but i think, i don't understand what you want

or Maybe

GlobalVar $arToClose;

$i = 0
...

$arToClose[$i] = "PlayerList_".$currUserName."_".$i."_remove";
openPrivButton ( $arToClose[$i],$top left_x+31,$topleft_y+1,4,5,5,-1,16,"^3X",Remove_Registered);
$i = $i +1;
...

For closing all

$i = 0;
...
$i=$i+1;
closePrivButton( $arToClose[$i] );
...
Quote from mackosajt :Hello!

1st of all, sry if i wrote in wrong topic.

Our little team runs a dedicated host on a Mandriva linux based system.
We used Lapper in the past, but when we used it, we runs the server from our pc, with win os and .net.
Now on linux, a bit problem appears. The old 5.7xx lapper runs fine, without error msg.
The new 5.8xx give us an error.
Mono 2.0 "installed" via built in update and install.

The error log attached.

What can be the problem?

Nobody can help me?

maybe sql lite need? or what?
Hello,

Try to update mono version on your Linux.

LFSLapper work fine on our Linux system. DLL provided are installed in exe directory?

Gai-Luron
how would i do ° for my drift angle i tried it and it gives me a ? can some one help?
:| im lost :P

what do i do :P

if needed i use 5.8.4.6
When you say you tried to use a degree symbol, how did you do it...find it in Character Map and then copy/paste into your text editor?
Quote from Krayy :When you say you tried to use a degree symbol, how did you do it...find it in Character Map and then copy/paste into your text editor?

ye :P idk how else to do it
I can't test it (my computer has died - currently surfing from work), but you may have to do under the LANG "EN" part of Lapper rather than directly in the script.

i.e.

instead of
openPrivButton( "drift_deg_symbol",$left+50,$top+14,3,4,2,-1,0,"^2o" );

try something like
openPrivButton( "drift_deg_symbol",$left+50,$top+14,3,4,2,-1,0,langEngine( "%{main_drift_deg_symbol}%" ));

and under the main_drift_deg_symbol, put the correct symbol.

Let me know if this works!
it didnt seem to work :P but idk might have not done something right
Quote :11/17/2009 9:57:12 PM

Lapper Instance 127.0.0.1/29999 abort!

Была сделана попытка загрузить программу, имеющую неверный формат. (Исключение из HRESULT: 0x8007000B)
Mono.Data.SqliteClient
в Mono.Data.SqliteClient.Sqlite.sqlite3_open16(String dbname, IntPtr& handle)
в Mono.Data.SqliteClient.SqliteConnection.Open()
в LFSDbs.DbsAccess..ctor(Debug pmyDebug, String DbName) в D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\Dbs\DbsAccess.cs:строка 45
в LFSDbs.gripDbs..ctor(Debug pmyDebug, String puniqueConnectionId, String DbName, Int32 LapTimeUsedForPbPar, String FtpServer, String FtpLogin, String FtpPasswd, String FtpRemotePath, String dateFormat) в D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\Dbs\gripdbs.cs:строка 72
в LFSLapper.LFSClient.init(String pip, Int32 pport, String pWorkingDir, String pIniFile, String pSuperUsers) в D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\lfsclient.cs:строка 558
в LFSLapper.LFSClient..ctor(String pip, Int32 pport, String pWorkingDir, String pInifile, String pSuperUsers) в D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\lfsclient.cs:строка 254
в LFSLapper.LFSListen.Listen.goWorkMode() в D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSListen\Listen.cs:строка 82
в LFSLapper.LFSListen.Listen.start() в D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSListen\Listen.cs:строка 126
Int32 sqlite3_open16(System.String, IntPtr ByRef)
Closing Instance...
-----------------------------------------------------------------------------

can someone help me?
Hi Guys,
whats the oposite to tolower($argv); as need to make sure an input is CAPITALISED lol
Quote from Andy King :Hi Guys,
whats the oposite to tolower($argv); as need to make sure an input is CAPITALISED lol

toupper?
I knew it was going to be obvious as was trying ToHigher LMAO

Cheers
Quote from Fire_optikz001 :is this

<?php 
    
IF( GetCurrentPlayerVar"command" ) == "does not exist" )
    
THEN
                                privMsg
"^1Invalid Command! ^7Please Look At ^2!Help ^7For Commands!" );
   ENDIF
?>

correct if wanted to fetch this

<?php 
 SetCurrentPlayerVar
"command","does not exist" );
?>

please help!

Bump
Yes..., but what's the question?
ok well when i tried it it didnt work :| im trying to set something up cause i have a full time command section and part time but i think i may trash the idea :| idk yet
Hello,

I say i don't understand what do you want to do on LFSLapper. Explain more. I can't help you with this poors infos
well i was gonna create a cruise part so there would be 2 areas and since i didnt want to double my script i wanted to put it in 2 sections so one was the commands that are on all the time (admin commands) the other was ones that wouldnt matter so i had 2 defaults if the command wasent in the admin it would say invalid command even if it was a real command so i needed it to store a value so that it could tell the other command area that it dont exist in the admin section meaning it would then say it only once if it was not really a command in either section
Give me some example like
player 1 enter in zone1
Command available
player2(admin) enter in zone1
Command available

player 1 enter in zone2
Command available
player2(admin) enter in zone2
Command available

player 1 enter not in zone
Command available
player2(admin) not in zone
Command available


i don't know how work cruise server. for me it's new

Gai-Luron
Quote from Gai-Luron :Give me some example like
player 1 enter in zone1
Command available
player2(admin) enter in zone1
Command available

player 1 enter in zone2
Command available
player2(admin) enter in zone2
Command available

player 1 enter not in zone
Command available
player2(admin) not in zone
Command available


i don't know how work cruise server. for me it's new

Gai-Luron

:P well i mean what i have now is its spilt there is a section of admin commands and help commands then there is race/drift commands that i dont want used in cruise... u should come see al the stuff im working on
how to do this in the src of 5.9.0.3


<?php 
                
case "usermsg":
                    {
                        
testArgs(ident"SSS"args);
                        
currInfoPlayer listOfPlayers.getPlayerByUserName((string)args[1]);
                        if (
currInfoPlayer == null)
                            throw new 
GLScript.GLApp.GLScriptException("You can't use " ident " in this context, not a player event");
                        
string text args[2].ToString();
                        if (
text == "[[TranslateEngine]]")
                            
text lfsLang.replaceParmsLangStr(currInfoPlayer.idLang);
                        
SendMsgToConnection(currInfoPlayer.UCID"^6Personal msg from: ^8" + (string)args[0]);
                        
SendMsgToConnection(currInfoPlayer.UCID"^7" text );
                        break;
                    }  
?>

This thread is closed

Config help
(1112 posts, closed, started )
FGED GREDG RDFGDR GSFDG