Post: MW3 dataGridView C#
06-24-2013, 08:54 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); How can I add this code for mw3 to show up in a dataGridView whenever I click a button?
    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);
}

The following user thanked JemEO for this useful post:

slim355
06-24-2013, 12:11 PM #2
slim355
You talkin to me?
    
*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 12:32 PM.

The following 3 users say thank you to slim355 for this useful post:

BaSs_HaXoR, JemEO, therifboy
06-24-2013, 12:24 PM #3
Originally posted by slim355 View Post
    
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.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo