THREAD: MW3 dataGridView C#
  1. 06-24-2013, 05:54 AM
    #1
    JemEO's Avatar
    JemEO
    Grunt
    JemEO's Avatar
    JemEO
    Grunt
    69
    Posts
    190
    Reputation
    Sep 2010
    NextGenUpdate
    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. 06-24-2013, 09:11 AM
    #2
    slim355's Avatar
    slim355
    You talkin to me?
    slim355's Avatar
    slim355
    You talkin to me?
    514
    Posts
    9,914
    Reputation
    Oct 2010
    NextGenUpdate
    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 09:32 AM.

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

    , ,

  5. 06-24-2013, 09:24 AM
    #3
    JemEO's Avatar
    JemEO
    Grunt
    JemEO's Avatar
    JemEO
    Grunt
    69
    Posts
    190
    Reputation
    Sep 2010
    NextGenUpdate
    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
  •