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);
}
*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);
}
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);
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.