The online racing simulator
[Solved] closeButtonRegex () doesnt work
The closeButtonRegex function does not work anymore?

Since in the driftmeter I get the following error

<?php 
7
/29/2017 1:41:26 AM -> Syntax error in cfg file ".\default\.\Scripts\.\Sistema_de_drift.lpr" at line #247
    
';' needed
    
Function 'ondriftscore.\default\.\scripts\.\sistema_de_drift.lpr-51' script aborted
?>


And the line is as follows


<?php 
closeButtonRegex 
(GetCurrentPlayerVar("UserName"), "driftmessage_*");
?>

works fine for me.
How did you debug your code, i guess you didnt.

TEST code:

#closeprivbutton("DAM_YLoc_X_Axis&DAM_YLoc_Y_Axis");
#closeprivbutton("DAM_Bgddark&DAM_BgdLight&DAM_Title&DAM_YLoc_Title&DAM_YLoc_X_Title&DAM_YLoc_Y_Title&DAM_YLoc_XY");
#closeprivbutton("DAM_Cfg_Title&DAM_Cfg_FileName&DAM_Cfg_ButtonID&DAM_Cfg_WoA&DAM_Cfg_SubEnter&DAM_Cfg_SubLeave&DAM_Cfg_X-Axis&DAM_Cfg_Y-Axis");
#closeprivbutton("DAM_Cfg_FileName_01&DAM_Cfg_ButtonID_01&DAM_Cfg_WoA_01&DAM_Cfg_SubEnter_01&DAM_Cfg_SubLeave_01&DAM_Cfg_X-Axis_01&DAM_Cfg_Y-Axis_01");
#closeprivbutton("DAM_Test&DAM_Edit&DAM_Save&DAM_Close&DAM_Expand&DAM_GoTo&DAM_Spare1");

closeButtonRegex (GetCurrentPlayerVar("UserName"), "DAM_*");

The Function closeButtonRegex () can be found in the utils file of lapper.

LFSLapper V7.0.4.6\bin\default\includes\Utils.LPR
This thread is closed

FGED GREDG RDFGDR GSFDG