Post: C++ Floats
12-01-2014, 10:51 PM #1
seanhellen
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); Hi everyone - I am trying to get my head round trying to make an origin float array (for mw3) in C++ but i dont know how...I have looked at different codes and the nearest I have found was an aimbot code for mw2 that had float[] origins and then origin[0] = ..... etc but i am not sure how that would translate into C++. I tried putting it through a converter but vs2010 didn't like it and threw up more errors. I got as far as;

    float *Origin(int Client)
{
float *Origin[3];
Origin[0] = PS3::ReadFloat(G_Client(Client), 0x1C));
Origin[1] = PS3::ReadFloat(G_Client(Client), 0x20));
Origin[2] = PS3::ReadFloat(G_Client(Client), 0x24));
}


but its not right and it's bugging me lol

could someone help?

Thanks Smile
(adsbygoogle = window.adsbygoogle || []).push({});
12-29-2014, 04:05 AM #2
Mr Smithy x
Former Staff
Try
    
float *Origin(int Client)
{
float *Origin[3] = new float[3]{PS3::ReadFloat(G_Client(Client), 0x1C)),PS3::ReadFloat(G_Client(Client), 0x20)) PS3::ReadFloat(G_Client(Client), 0x24))};
return Origin;
}
12-29-2014, 09:06 AM #3
seanhellen
Are you high?
Hi - thanks for this, but I got some help from Winter and managed to sort it - thanks anyways Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo