The online racing simulator
Searching in All forums
(931 results)
Fire_optikz001
S2 licensed
I will release this update ASAP as i forgot to add something
Fire_optikz001
S2 licensed
Quote from Bass-Driver :
hi
i have change my lapper version to 5.924 and my !report command doesnt make new files


CASE "!report":
IF( $argv != "" ) THEN
$idxOfFirtsSpace = indexOf( $argv, " ");
IF( $idxOfFirtsSpace != -1 ) THEN
$user = subStr( $argv,0,$idxOfFirtsSpace );
$argv = trim( subStr( $argv,$idxOfFirtsSpace ) );
IF( UserInGroup( "Report" . $user , $user ) == 1 )
THEN
privMsg( "^7»Thanks for reporting" );
privMsg ( "^7»U Have Report This User ^3(" . $User .")" );
[COLOR=Red] MoveUserToGroup( "Report" . $user, "Report by: " . GetCurrentPlayerVar("UserName") . " (" . GetLapperVar("ShortDate") . " - " . GetLapperVar("LongTime") . ")" . $argv );
UserGroupToFile( "Report" . $user, "User/Report/" . $user . ".txt" );[/COLOR]
ELSE
privMsg( "^7»Thanks for reporting" );
privMsg ( "^7»U Have Report This User ^3(" . $user .")" );
privMsg ( "^7»^6" . $argv );
[COLOR=Red] MoveUserToGroup( "Report" . $user, "Report by: " . GetCurrentPlayerVar("UserName") . " (" . GetLapperVar("ShortDate") . " - " . GetLapperVar("LongTime") . ")" . $argv );
UserGroupToFile( "Report" . $user, "User/Report/" . $user . ".txt" );[/COLOR]
$test = GetListOfPlayers( );
FOREACH( $maVar IN $test )
IF( UserInGroup( "UserAdmin",$maVar["value"] ) == 1 )
THEN
privMsg ( $maVar["value"] , "^1»!!! ^7" . GetCurrentPlayerVar("NickName") ." Has Report ^3(" . $user .")");
privMsg ( $maVar["value"] , "^7»^6" . $argv );
ENDIF
ENDFOREACH
ENDIF
ENDIF
ENDIF
BREAK;



try this
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
Hey all i'm finalizing 1.3 Beta it !REQUIRES! 5.925!
Fire_optikz001
S2 licensed
Quote from Gai-Luron :

1. Add new function to open private button for another player
Syntax :
openButton( username, idOfButton, left, top, width, height, interline, secondDisplayed, style, text[,optional_backCall] );



ty now i can finish the last bit of my cop sys for cruise addon and ill be releasing it

Quote from Gai-Luron :

2. Add new function to close private button for another player
Syntax :
openButton( username, idOfButton );

3 - Add new command openTextButton, to open a button who query an input string for a specified player
openPrivTextButton( "username","ref2",103,140,20,10,10,32,"Caption","Toto",30,saisTxt );


typos?
Fire_optikz001
S2 licensed
i would be 15 in july :/
Fire_optikz001
S2 licensed
Quote from Bass-Driver :wow thx mate
didnt know that u could remove the scheduleactions, ill go test it

RemoveScheduleAction doesnt work
1/18/2010 10:00:35 PM -> Syntax error in cfg file "LFSLapper.lpr" at line #862
'removescheduleaction' is not a Lapper function
Function 'autotrackchangeoff' script aborted

need to find something else.

thats because it was not added in845... thats why i told u to upgrade to 924 it would solve all ur problems
Fire_optikz001
S2 licensed
i would like a thing for open privbutton that u can open it for a certain user like

<?php 
openButton
$argv"test2",160,15,35,5,5,-1,32$var1 ); #for another player
?>

Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
Quote from emit-nl :That's right! This is exactly what I'm using for my hosts..

In the event section of LFSLapper.lpr:
RegisterScheduleAction( "1 00 * * * * *", SA_visitus );
RegisterScheduleAction( "1 10 * * * * *", SA_visitus );
RegisterScheduleAction( "1 20 * * * * *", SA_visitus );
RegisterScheduleAction( "1 30 * * * * *", SA_visitus );
RegisterScheduleAction( "1 40 * * * * *", SA_visitus );
RegisterScheduleAction( "1 50 * * * * *", SA_visitus );

AND
Sub SA_visitus() # Lapper Event

globalMsg( langEngine( "%{main_visitus}%" ) );

EndSub

In the language section:
main_visitus = "^1» ^6Visit us: ^7http://www.sinsanity.nl";

This message will be shown every 10minutes (beleve me, every 10 minutes is frequent enough!!)
You can see it in all Sinsanity hosts: $!N - Demo, $!N - Drift, $!N - Race #1 and $!N - Race #2

Tim

why not
RegisterScheduleAction( "1 00 * * * * *:1 10 * * * * *:1 20 * * * * *:1 30 * * * * *:1 40 * * * * *:1 50 * * * * *", SA_visitus );

Fire_optikz001
S2 licensed
Quote from Krayy :Can you give us an example of how it should work?

like i was wondering if there was a way to open a privbutton for a diffrent user like lets say $var1 would be "hi" it would pop it up on the other users screen
Fire_optikz001
S2 licensed
is there a way to open a privbutton for a diffren user i have


<?php 
openPrivButton
$argv,"test2",160,15,35,5,5,-1,32$var1 );  
?>

but it does not work
Fire_optikz001
S2 licensed
there is something in lfs lapper but there has to be a real person driving :P
Fire_optikz001
S2 licensed
i know with lfs lapper u can have 1 button (or it looks like 1) with more then 1 line of stuff i wanted to know if it really was 1 button or not
multiline buttons
Fire_optikz001
S2 licensed
is there really multi line buttons or are they multiple normal buttons?
Fire_optikz001
S2 licensed
Quote from Gai-Luron :If you don't want 0 and no "". What do you want?

i can have "" but it does not do anything

Quote from Krayy :As "" is not a valid number, then it will not stroe anything in the numeric database field. When you try to retrieve it using the GetUserStoredNum, as the stored value is not a valid number, then that function will return -1

hmmm will try
Fire_optikz001
S2 licensed
Quote from Gai-Luron :SetUserStoredValue( $argv , "HC" , 0 );

cant have 0 i need blank D:
Fire_optikz001
S2 licensed
ok i have a new problem in

SetUserStoredValue( $argv , "HC" , "" );
SetUserStoredValue( $argv , "Cash" , "" );
SetUserStoredValue( $argv , "Bank" , "" );
SetUserStoredValue( $argv , "KM" , "" );
SetUserStoredValue( $argv , "Energy" , "" );

found out it sets string value but not number value which is what the problem is :/
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
is there somthing like GetListOfPlayers( ) but for on track?
Fire_optikz001
S2 licensed
Quote from mamoru :I saw a mate of me do that once.

EDIT: heh, wait, you ARE that mate lol

Fire_optikz001
S2 licensed
Spotted a bug in Force Save and also added support for 5.9.2.4 and chande setting in bank intrest
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
nvm
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
um u might want to fix ondisconnect (add $reason ) on the includes
Fire_optikz001
S2 licensed
Quote from Krayy :Use a combination of "strlen" and "substr" like this:


<?php 
$oldstr
="Chat_tatata";
$newstr substr($oldstr,5strlen($oldstr));
?>

That would make $newstr the part of $oldstr from character 5 to the end of the string

eh i just decided to do it diffrent way but i will keep this in mind for next time i may need this
Fire_optikz001
S2 licensed
Quote from Krayy :'Cos the idea is that the file written to would be a log file in the ./log directory, and the extension is superflous because it would always be .log (as least that's the idea...any extension should be ok, and can be set via a const)

well why does it half to be in the log file i think it would be cool if we could put it any where
Fire_optikz001
S2 licensed
Quote from Krayy :A GL function to allow the writing of data to a log file.

See post http://www.lfsforum.net/showthread.php?p=1354403#post1354403 fro details

better yet why not this:


<?php 
WriteToFile
("./report.txt""Fireoptikz did something naughty");

OR

WriteLineToFile("./report.txt""Fireoptikz did something naughty");

?>

what ever u like better
FGED GREDG RDFGDR GSFDG