Here I made 2 windows, one is !da and the other is !info (both have working "close" buttons, and a non working "NEXT" button).
I am trying to put the !da command in the "next button" so when someone presses "NEXT" button in !info it opens the window in !da
And the part that makes the buttons close when close is pressed.
I was thinking a Do function but I am unsure how to code properly and all attempts failed.
Help would be much appreciated, Cheers!
I am trying to put the !da command in the "next button" so when someone presses "NEXT" button in !info it opens the window in !da
<?php
CASE "!da":
openPrivButton( "top",3,49,100,75,6,-1,16,"" );
openPrivButton( "leftbx",3,49,25,75,6,-1,32,"");
openPrivButton( "Header",28,50,74,5,6,-1,32,"");
openPrivButton( "da",15,50,74,5,6,-1,0,"^2DRIFT^3AUSTRALIA");
openPrivButton( "Score",32,50,74,5,6,-1,0,"^7Scoring");
openPrivButton( "light",42,50,74,5,6,-1,12,"^2•");
openPrivButton( "lappa",3,59,25,5,5,-1,16,"^7Lapper");
openPrivButton( "box",28,59,74,5,6,-1,16,"");
openPrivButton( "infos",3,59,125,5,5,-1,0,"^7Lapper ^7Will ^7Give ^7You ^7Point's ^7For ^7Drifting ^7According ^7To ^7Angle:");
openPrivButton( "Angle",31,71,15,5,5,-1,0,"^7Min ^7Angle:");
openPrivButton( "Anglenum",41,71,15,5,5,-1,0,"^715°");
openPrivButton( "speed",31,79,15,5,5,-1,0,"^7Min ^7Speed:");
openPrivButton( "speednum",43,79,15,5,5,-1,0,"^710KMP");
openPrivButton( "Clips",3,89,25,5,5,-1,16,"^7Clip ^7Point's");
openPrivButton( "infos2",28,89,74,5,5,-1,16,"^7LFS ^7Gives ^7Points ^7According ^7To ^7The ^7Amount ^7Of ^7Clip's ^7Hit.:");
openPrivButton( "clipp",32,98,20,5,5,-1,0,"^7One ^7Pole/Cone ^7=");
openPrivButton( "clippn",48,98,15,5,5,-1,0,"^750pts");
openPrivButton( "next",31,117,15,5,5,-1,32,"^7NEXT");
openPrivButton( "pstclose",60,110,20,10,5,-1,32, langEngine("%{main2_close}%"),ClosePstInfo );
BREAK;
ENDIF
CASE"!info":
openPrivButton( "top",3,49,100,75,6,-1,16,"" );
openPrivButton( "infos",3,51,25,5,5,-1,0,"^7HELP");
openPrivButton( "lappa",3,59,25,5,5,-1,16,"");
openPrivButton( "leftbx",3,49,25,75,6,-1,32,"");
openPrivButton( "Clips",3,89,25,5,5,-1,0,"");
openPrivButton( "Anglenum",3,59,25,5,5,-1,0,"^7Custom ^7Commands ^7(!da)");
openPrivButton( "Header",28,50,74,5,6,-1,32,"");
openPrivButton( "Score",32,50,74,5,6,-1,0,"^7Info/Help");
openPrivButton( "light",45,50,74,5,6,-1,12,"^2•");
openPrivButton( "da",15,50,74,5,6,-1,0,"^2DRIFT^3AUSTRALIA");
openPrivButton( "pstclose",60,110,20,10,5,-1,32, langEngine("%{main2_close}%"),ClosePstInfo );
BREAK
ENDIF
?>
<?php
Sub ClosePstInfo( $KeyFlags,$id )
closePrivButton(
"pstclose&Back&Angle&top&top2&leftbx2&Header2&leftbx&Header&da&Score&lappa&light&light2&box&infos&Angle&Anglenum&speed&speednum&Clips&infos2&clipp&clippn&PSNickNa
me&PSDistance&PSFuel&PSLaps&PSWins&PSSecond&PSThird&PSFinished&PSQuals&PSPole&next&prev");
Closeclosescore( $KeyFlags,$id )
closePrivButton("closescore");
EndSub
?>
Help would be much appreciated, Cheers!