Results 1 to 3 of 3

Thread: MW3 dataGridView C#


  1. JemEO's Avatar

    JemEO NextGenUpdate Elite

    Join Date Sep 2010

    Posts 68

    Membership Elite

    NextGenUpdate Elite Member

    Reputation: 190

    06-24-2013 04:54 AM #1 MW3 dataGridView C#


    How can I add this code for mw3 to show up in a dataGridView whenever I click a button?
    Code:
    public static string GetPlayerName(int clientID)
    {
        byte[] GetName = new byte[16];
        PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x0110D694 + ((uint)clientID * 0x3980), ref GetName);
        return Encoding.ASCII.GetString(GetName);
    }

  2. The Following User Says Thank You to JemEO For This Useful Post:


  3. slim355 You talkin to me?

    Join Date Oct 2010

    Posts 509

    Membership Standard

    Reputation: 9634

    06-24-2013 08:11 AM #2

    Code:
    *Assuming dataGridView1 is within the scope of this function. 
    
    
    public static void FillDataGridView(int Client_ID)
    {
        DataGridViewRow row = new DataGridViewRow();
        row.CreateCells(dataGridView1); 
        row.Cells[0].Value = GetPlayerName(Client_ID);
        dataGridView1.Rows.Add(row);
    }
    
    public static string GetPlayerName(int clientID)
    {
        byte[] GetName = new byte[16];
        PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x0110D694 + ((uint)clientID * 0x3980), ref GetName);
        return Encoding.ASCII.GetString(GetName);
    }
    Last edited by slim355; 06-24-2013 at 08:32 AM.
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]

  4. The Following 3 Users Say Thank You to slim355 For This Useful Post:


  5. JemEO's Avatar

    JemEO NextGenUpdate Elite

    Join Date Sep 2010

    Posts 68

    Membership Elite

    NextGenUpdate Elite Member

    Reputation: 190

    06-24-2013 08:24 AM #3

    Quote Originally Posted by slim355 View Post
    Code:
    public static void FillDataGridView(int Client_ID)
    {
        DataGridViewRow row = new DataGridViewRow();
        row.CreateCells(dataGridView1); 
        row.Cells[0].Value = GetPlayerName(Client_ID);
        dataGridView1.Rows.Add(row);
    }
    
    public static string GetPlayerName(int clientID)
    {
        byte[] GetName = new byte[16];
        PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x0110D694 + ((uint)clientID * 0x3980), ref GetName);
        return Encoding.ASCII.GetString(GetName);
    }
    Thank you! +rep back at you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •