Advertisement
ra1n

Get Clients - Ghosts

Dec 6th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.75 KB | None | 0 0
  1. public string GetNames(int clientIndex) // Get Client Names
  2.         {
  3.             byte[] nameb = new byte[16];
  4.             string namestr = Encoding.ASCII.GetString(nameb).Replace(Convert.ToChar(0x00).ToString(), string.Empty);
  5.             GetMemory(0xF12B80 + ((uint)clientIndex * 0x3600) + 0x2f1c, ref nameb);
  6.             return namestr;
  7.  
  8.         }
  9.  
  10. private void getclients_Click(object sender, EventArgs e) // Get Client Table
  11.         {
  12.             if (dataGridView1.Rows.Count == 1)
  13.             {
  14.                 dataGridView1.Rows.Add(12);
  15.             }
  16.             for (int i = 0; i < 12; i++)
  17.             {
  18.                 dataGridView1[0, i].Value = "Client" + i;
  19.                 dataGridView1[1, i].Value = GetNames(i);
  20.             }
  21.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement