Use a combination of "strlen" and "substr" like this:
<?php
$oldstr="Chat_tatata";
$newstr = substr($oldstr,5, strlen($oldstr));
?>
<?php
$oldstr="Chat_tatata";
$newstr = substr($oldstr,5, strlen($oldstr));
?>
<?php
$idxOfFirtsSpace = indexOf( $text, " ");
$argv2 = substr($argv,$idxOfFirtsSpace , strlen($argv));
?>
<?php
IF( $idxOfFirtsSpace == -1 ) THEN
$command = $text;
$argv = "";
ELSE
$command = subStr( $text,0,$idxOfFirtsSpace );
$argv = trim( subStr( $text,$idxOfFirtsSpace ) );
ENDIF
?>
<?php
FOREACH ($Racer in getListOfPlayers())
IF (GetPlayerVar($Racer, "ontrack"))
THEN
globalmsg( $Racer . " is currently in a race");
ENDIF
ENDFOREACH
?>
SetUserStoredValue( $argv , "HC" , "" );
SetUserStoredValue( $argv , "Cash" , "" );
SetUserStoredValue( $argv , "Bank" , "" );
SetUserStoredValue( $argv , "KM" , "" );
SetUserStoredValue( $argv , "Energy" , "" );
##############
#FTP transfer#
##############
# Results files can also be transferred to an FTP server
# Define the following parameters to use this feature
# Remove # before line to activate it
# -------------------------------------------------------------------
$FtpServer = "www.SERT-LFS.net"; # Name/IP-address of your FTP server
$FtpLogin = "myuser"; # Loginname for your FTP server
$FtpPasswd = "mypass"; # Password for your FTP server
$FtpRemotePath = "www/sert-lfs.net/site/lapperscript/txt"; # Directorname
##############################
#Synchronise Lapper databases#
##############################
#$SyncID="frh01"; # Unique ID for this instance of Lapper
#$SyncDir="synchro"; # Name of synchronisation directory. Every Lapper should have this directory name in order to synchronise
#$SyncIDsToSync="frh02|frh03"; # Lapper ID's to synchronise with
# Seperate ID's with |
# You can't use current SyncID here
$SyncID="DEMO1";
$SyncDir="synchro";
$SyncIDsToSync="DEMO2";
##############
#FTP transfer#
##############
# Results files can also be transferred to an FTP server
# Define the following parameters to use this feature
# Remove # before line to activate it
# -------------------------------------------------------------------
$FtpServer = "www.SERT-LFS.net"; # Name/IP-address of your FTP server
$FtpLogin = "myuser"; # Loginname for your FTP server
$FtpPasswd = "mypass"; # Password for your FTP server
$FtpRemotePath = "www/sert-lfs.net/site/lapperscript/txt"; # Directorname
##############################
#Synchronise Lapper databases#
##############################
#$SyncID="frh01"; # Unique ID for this instance of Lapper
#$SyncDir="synchro"; # Name of synchronisation directory. Every Lapper should have this directory name in order to synchronise
#$SyncIDsToSync="frh02|frh03"; # Lapper ID's to synchronise with
# Seperate ID's with |
# You can't use current SyncID here
$SyncID="DEMO2";
$SyncDir="synchro";
$SyncIDsToSync="DEMO1";
<?php
openPrivButton( $argv,"test2",160,15,35,5,5,-1,32, $var1 );
?>
##############################
#Synchronise Lapper databases#
##############################
#$SyncID="frh01"; # Unique ID for this instance of Lapper
#$SyncDir="synchro"; # Name of synchronisation directory. Every Lapper should have this directory name in order to synchronise
#$SyncIDsToSync="frh02|frh03"; # Lapper ID's to synchronise with
# Seperate ID's with |
# You can't use current SyncID here
$SyncID="DEMO1";
$SyncDir="synchro";
$SyncIDsToSync="DEMO2";
##############################
#Synchronise Lapper databases#
##############################
#$SyncID="frh01"; # Unique ID for this instance of Lapper
#$SyncDir="synchro"; # Name of synchronisation directory. Every Lapper should have this directory name in order to synchronise
#$SyncIDsToSync="frh02|frh03"; # Lapper ID's to synchronise with
# Seperate ID's with |
# You can't use current SyncID here
$SyncID="DEMO2";
$SyncDir="synchro";
$SyncIDsToSync="DEMO1";
##############
#FTP transfer#
##############
# Results files can also be transferred to an FTP server
# Define the following parameters to use this feature
# Remove # before line to activate it
# -------------------------------------------------------------------
$FtpServer = "www.SERT-LFS.net"; # Name/IP-address of your FTP server
$FtpLogin = "my_ftp_user"; # Loginname for your FTP server
$FtpPasswd = "my_ftp_pass"; # Password for your FTP server
$FtpRemotePath = "www/sert-lfs.net/site/lapperscript/txt"; # Directorname
<?php
Sub AutoTrackChangeOff($KeyFlags,$id)
IF($AutoTrackChange == "off")
THEN
privMsg( "^7>ATC ALREADY TURNED ^1OFF!!!");
ELSE
$AutoTrackChange = "off";
RemoveScheduleAction( SA_RotateTrack0 );
RemoveScheduleAction( SA_RotateTrack3 );
RemoveScheduleAction( SA_RotateTrack6 );
RemoveScheduleAction( SA_RotateTrack9 );
RemoveScheduleAction( SA_RotateTrack12 );
RemoveScheduleAction( SA_RotateTrack15 );
RemoveScheduleAction( SA_RotateTrack18 );
RemoveScheduleAction( SA_RotateTrack21 );
cmdLFS("/msg ^7>" . GetCurrentPlayerVar("Nickname") . "^7 Turned ATC ^1OFF!!!" );
ENDIF
ClosePrivButton("ATCONOFF&ATCON&ATCOFF");
EndSub
?>