chapperzUK

Members
  • Content count

    61
  • Joined

  • Last visited

About chapperzUK

  • Rank
    Amateur

About Me

  • About Me
    Southend, Essex

Interests

  • Interests
    Football, FM

Favourite Team

  • Favourite Team
    Southend United
  1. http://community.sigames.com/showthread.php?t=72226 I would like to know how i can edit the code in the link above so that ALL the players in the datagridview go into the shortlist. Thanks in advance. Chapperz
  2. Will there be frameworks like these for the 2010 version?
  3. Also the name of the shortlist on FM comes out as 'Untitled', does anyone know how to change this?
  4. I have tested this code but I only get 3 players in the shortlist. The bit I have changed is in red and bold. dgvShortlist = DataGridView with the players that will get transfered to the shortlist in it. In cell(0) is the player's ID private void Form1_Load(object sender, EventArgs e) { int[] players = new int[] {8443037, 35011612, 3301294 }; string name = "Test"; using (FileStream stream = new FileStream(@"C:\test.slf", FileMode.OpenOrCreate)) { using (BinaryWriter sw = new BinaryWriter(stream)) { sw.Write(new byte[] { 0x02, 0x01, 0x66, 0x6C, 0x73, 0x2E, 0x01, 0x00, 0x00, 0x01, 0x91, 0x52, 0x38, 0x00 }); sw.Write(FromIntToHex(name.Length)); sw.Write(FromStringToHex(name)); sw.Write(new byte[] { 0x00, 0x00 }); sw.Write(FromIntToHex(players.Length)); [b][color="Red"]foreach (DataGridViewRow row in dgvShortlist.Rows) { sw.Write(FromIntToHex(row.Cells(0).Value.ToString())); }[/color][/b] sw.Write(0x00); } } } private byte[] FromIntToHex(int value) { byte[] buffer = new byte[4]; { buffer[0] = (byte)(value & 0xff); buffer[1] = (byte)((value & 0xff00) >> 8); buffer[2] = (byte)((value & 0xff0000) >> 0x10); buffer[3] = (byte)((value & 0xff000000L) >> 0x18); } return buffer; } private byte[] FromStringToHex(string value) { List<byte> bytes = new List<byte>(); char[] chars = value.ToCharArray(); foreach (char c in chars) { bytes.Add((byte)c); bytes.Add(0x00); } return bytes.ToArray(); } Thanks in advance
  5. I am using this code and would like to know how I can change it so that every player in a datagridview can go into the shortlist. (The player's ID will be in the 1st column). Could someone either email me or PM me. Thanks in advance.
  6. tw559 - Could you help me with my scout please. Thanks in advance.
  7. cool. Cheers. I want to have a progress bar on my form that shows when it is loading but when I am loading FM and searching through the players then it just freezes until it is done. Can someone help me?
  8. Thanks neevesc
  9. Where is the source?
  10. How can I search through the players and show them in a listbox.
  11. I have found out how to get an active player's information but how do I search through the data. I am using the Framework that can be found in this forum.
  12. How do you show can active player's information? I have this code but it has errors (in red) and I'm not sure if it works. Private Sub btnActive_Click(ByVal sender As Object, ByVal e As EventArgs) Dim filter As IEnumerable(Of Player) = fmDataContext.Players Dim player As Player = DirectCast(fmDataContext.ActiveObject, Player) If player IsNot Nothing Then filter = filter.Where(Function(p) p.ID.Equals(player.ID)) gridPlayers.AutoGenerateColumns = True gridPlayers.DataSource = (From p In filter Select New _ [color="red"][b]ID [/b][/color]= player.ID _ [b][color="red"]FullName [/color][/b]= player.ToString() _ NickName = player.Nickname _ CA = player.CurrentPlayingAbility _ PA = player.PotentialPlayingAbility _ Age = player.Age _ Value = String.Format("{0:€ #,##0;(€ #,##0)}", player.Value) _ SaleValue = String.Format("{0:€ #,##0;(€ #,##0)}", player.SaleValue) End If txtPlayerCorners.Text = ([color="Red"][b]currentPlayer[/b][/color].TechnicalSkills.Corners / 5).ToString(); End Sub Any help would be appreciated and you can be credited in the final piece. You can either PM me or email me.
  13. Ah well. Looks like I'll never get a reply to this now he has been banned! Can anyone please help me? Thanks in advance.
  14. Sorry for the possibly stupid question but what is H4X?
  15. It doesn't seen to work for me. I have found many 7* coaches which turn out to be 5* or 6*.