Post: C# Black Ops clients not pulling up as strings
04-13-2016, 04:24 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); welp heres the code i got it to pull clients but either one of two things will happens 1. they populate in a listbox either as numbers as there stored in memory or 2. nothing will show up but if i click at the top of the listbox and try to enable a mod it will enable it for me.

code below:

// Black Ops 1 Client Names
public static string ClientNames(uint client)
{
string getnames = PS3.Extension.ReadString(0x139784C + client * 0x2A3Cool Man (aka Tustin);
return getnames;
}

uint CalculateAddress(uint Address, uint Client, uint Offset)
{


return Address + Offset + ((uint)Client * 0x2A3Cool Man (aka Tustin);
}




//Black Ops 1 Get Clients
private void simpleButton422_Click(object sender, EventArgs e)
{
try
{
if (listBoxControl17.ItemCount == 1)
{
listBoxControl17.Items.Clear();
listBoxControl17.Items.Add(17);
}

for (uint i = 0; i < 18; i++)
{


listBoxControl17.Items.Clear();
uint AddressToRead = CalculateAddress(0x139784C, i, 0x2A3Cool Man (aka Tustin);
string Clientnames = PS3.Extension.ReadString(0x139784C + (i * 0x2A3Cool Man (aka Tustin));
listBoxControl17.Items.Add(Clientnames);



}
}

catch
{
MessageBox.Show("Could Not Retrieve Client's Please Try Agian");
}
}
Last edited by Manical Madman ; 04-13-2016 at 04:26 PM.
05-14-2016, 04:34 AM #2
Originally posted by Manical
welp heres the code i got it to pull clients but either one of two things will happens 1. they populate in a listbox either as numbers as there stored in memory or 2. nothing will show up but if i click at the top of the listbox and try to enable a mod it will enable it for me.

code below:

// Black Ops 1 Client Names
public static string ClientNames(uint client)
{
string getnames = PS3.Extension.ReadString(0x139784C + client * 0x2A3Cool Man (aka Tustin);
return getnames;
}

uint CalculateAddress(uint Address, uint Client, uint Offset)
{


return Address + Offset + ((uint)Client * 0x2A3Cool Man (aka Tustin);
}




//Black Ops 1 Get Clients
private void simpleButton422_Click(object sender, EventArgs e)
{
try
{
if (listBoxControl17.ItemCount == 1)
{
listBoxControl17.Items.Clear();
listBoxControl17.Items.Add(17);
}

for (uint i = 0; i < 18; i++)
{


listBoxControl17.Items.Clear();
uint AddressToRead = CalculateAddress(0x139784C, i, 0x2A3Cool Man (aka Tustin);
string Clientnames = PS3.Extension.ReadString(0x139784C + (i * 0x2A3Cool Man (aka Tustin));
listBoxControl17.Items.Add(Clientnames);



}
}

catch
{
MessageBox.Show("Could Not Retrieve Client's Please Try Agian");
}
}


Your problem is here in this bit of code:
string getnames = PS3.Extension.ReadString(CalculateAddress(0x139784C, client));

Use your CalculateAddress function there and also if this doesn't work then try seeing if you have the correct address.

Also the following code looks kind of off:
return Address + Offset + ((uint)Client * 0x2A3Cool Man (aka Tustin);
Why add the offset?
I believe it should be this:
return Address + ((uint)Client * 0x2A3Cool Man (aka Tustin);

Then the function:
uint CalculateAddress(uint Address, uint Client, uint Offset)

should be
uint CalculateAddress(uint Address, uint Client)
Last edited by D4tabase ; 05-14-2016 at 04:37 AM.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo