The online racing simulator
Need some help with code.
Hello! I was making InSim which would put 1st place against 16th then 2nd vs 15, 3rd vs 14 etc. and would print it out as a list with buttons. Got stuck in this place cant figure out how to get that ot work. Hope someone could help. I edited this code here so there can be some mistakes but I put it just so you could understand what im talking about. Each place is stored in seperate user file.


<?php 
foreach (clsConnection C in Connections)
            {
                

                    
byte LocationX 31;
                    
byte ButtonID1 10;
                    
byte ButtonID2 60;
                    
byte ButtonID3 120;
                    
byte ButtonID4 180;


                    
string[] files Directory.GetFiles(@"users""*.txt");
                    if (
files.Length 1)
                    {
                        
Console.WriteLine("No files.");
                        
InSim.Send_MST_Message("No files.");

                    }

                    foreach (
string f in files)
                    {
                        if (
f.Substring(6f.Length 10) != "")
                        {
                            
string name f.Substring(6f.Length 10);


                            
byte place;

                            
placeConvert.ToByte(FileInfo.GetUserVieta(name));
}


InSim.Send_BTN_CreateButton("^7Name"Flags.ButtonStyles.ISB_C1 Flags.ButtonStyles.ISB_DARK540251142C.UniqueID40false);
                        
InSim.Send_BTN_CreateButton(""Flags.ButtonStyles.ISB_DARK70402515C.UniqueID40false);

                        
InSim.Send_BTN_CreateButton("^1" 1stplace  " ^1vs " 16thplaceFlags.ButtonStyles.ISB_LEFT540LocationX1ButtonID1C.UniqueID40false);

LocationX += 5;
                        
ButtonID1++;
}

?>

Anyone?

FGED GREDG RDFGDR GSFDG