OK, after trying for a number of hours, I can give you the results of my testing (on V7.080) ...
Drift Scores:
DoMyDriftTop( XRT,FALSE,FALSE ); - This works
DoMyDriftTop( 19,FALSE,FALSE ); - This works
They're the only 2 commands I need for my drift buttons so no further tests on drifts.
Top Times:
Nothing I've tried works. Best I can do, is get an empty table ...
(and yes, I do have a UF1 time in my normal top list!)
So. I have a button set up ...
<?php
openPrivButton( "car_UF1button",58,156,8,5,2,-1,16,"^2UF1",Click_UF1 );
?>
Then a sub ...
<?php
Sub Click_UF1( $KeyFlags,$id )
closeButtonRegex (GetCurrentPlayerVar("UserName"), "SinanjuTop_*"); # close TOP List
DoMyUserTop( UF1,DESC,FALSE,1 );
# Where - UF1 = Storedvalue / DESC or ASC: Sort values descending or ascending /
# FALSE = Display toplist ('TRUE' = go to your position) / Filter: 1 = start at position 1
EndSub
?>
Result: This does open table (ie "List of: UF1") but does not populate the table with details - nor does it produce an error in the log file
<?php
Sub Click_UF1()
closeButtonRegex (GetCurrentPlayerVar("UserName"), "SinanjuTop_*"); # close TOP List
DoMyUserTop( UF1,DESC,FALSE,1 ) ;
EndSub
?>
Result: This does nothing, but does throw up a "Syntax error: Incorrect number of arguments at line #181 in function 'click_uf1' script aborted" error
<?php
Sub Click_UF1( UF1,DESC,FALSE,1 )
closeButtonRegex (GetCurrentPlayerVar("UserName"), "SinanjuTop_*"); # close TOP List
DoMyUserTop();
EndSub
?>
Result: This does nothing, but does throw up a "Syntax error: Incorrect number of arguments at line #188 in function 'click_uf1' script aborted" error
<?php
Sub Click_UF1( UF1,DESC,FALSE,1 )
closeButtonRegex (GetCurrentPlayerVar("UserName"), "SinanjuTop_*"); # close TOP List
DoMyUserTop(UF1,DESC,FALSE,1);
EndSub
?>
Result: This does nothing, but does throw up a "Syntax error: Incorrect number of arguments at line #195 in function 'click_uf1' script aborted" error
<?php
Sub Click_UF1( $KeyFlags,$id )
closeButtonRegex (GetCurrentPlayerVar("UserName"), "SinanjuTop_*"); # close TOP List
DoMyUserTop( UF1,DESC,TRUE,1 );
EndSub
?>
Result: This does open table (ie "List of: UF1") but does not populate the table with details - nor does it produce an error in the log file
Also tried same subs but changing DESC to ASC (decending to ascending), but same results.
Then I thought that maybe the problem might be that if the UF1 isn't top of the times, then it should be blank, so
<?php
Sub Click_UF1( $KeyFlags,$id )
closeButtonRegex (GetCurrentPlayerVar("UserName"), "SinanjuTop_*"); # close TOP List
DoMyUserTop( UF1,DESC,FALSE,"" );
EndSub
?>
Result: Empty list
Anyone advise on where I'm going wrong?