0x32789
Expert
hai, im trying to read a GiveTakeDamage RPC and whenever I read I can ONLY read the first parameter, (id)
and after that insane values like -10102501290581205829058190285 or 1290581258129056923906 starts coming
I dont know even what parameter is the bodypart and I have like tried in all..
ID works but b1, etc all of em returning senseless values.
my code
this code is in my outcoming rpc's and if I just write offset 1 to like number of head = 9, so if I do it parameters->Write(9); after doing parameters->SetWriteOffset(...)
it will put sense less values in all of them
I tested using showcallbacks and this is what I got
ID: 32728 pos NaN and bodypart -1205912 bla bla
Am I doing something wrong? Can someone explain that to me?
and after that insane values like -10102501290581205829058190285 or 1290581258129056923906 starts coming
I dont know even what parameter is the bodypart and I have like tried in all..
ID works but b1, etc all of em returning senseless values.
my code
Code:
if (uniqueID == RPC_GiveTakeDamage && set.autoheadshot == true)
{
short id;
short body;
UINT b2;
UINT16 b3;
uint16_t b4;
UINT32 b5;
int b6;
parameters->SetReadOffset(1);
parameters->Read(id);
parameters->SetReadOffset(2);
parameters->Read(body);
parameters->SetReadOffset(2);
parameters->Read(b2);
parameters->SetReadOffset(2);
parameters->Read(b3);
parameters->SetReadOffset(2);
parameters->Read(b4);
parameters->SetReadOffset(2);
parameters->Read(b5);
parameters->SetReadOffset(2);
parameters->Read(b6);
addMessageToChatWindow("ID: %d - B1: %d - B2: %d - B3: %d - B4: %d - B5: %d - B6: %d", id, body, b2, b3, b4, b5, b6);
parameters->SetReadOffset(3);
parameters->Read(body);
parameters->SetReadOffset(3);
parameters->Read(b2);
parameters->SetReadOffset(3);
parameters->Read(b3);
parameters->SetReadOffset(3);
parameters->Read(b4);
parameters->SetReadOffset(3);
parameters->Read(b5);
parameters->SetReadOffset(3);
parameters->Read(b6);
addMessageToChatWindow("ID: %d - B1: %d - B2: %d - B3: %d - B4: %d - B5: %d - B6: %d", id, body, b2, b3, b4, b5, b6);
parameters->SetReadOffset(4);
parameters->Read(body);
parameters->SetReadOffset(4);
parameters->Read(b2);
parameters->SetReadOffset(4);
parameters->Read(b3);
parameters->SetReadOffset(4);
parameters->Read(b4);
parameters->SetReadOffset(4);
parameters->Read(b5);
parameters->SetReadOffset(4);
parameters->Read(b6);
addMessageToChatWindow("ID: %d - B1: %d - B2: %d - B3: %d - B4: %d - B5: %d - B6: %d", id, body, b2, b3, b4, b5, b6);
}
it will put sense less values in all of them
I tested using showcallbacks and this is what I got
ID: 32728 pos NaN and bodypart -1205912 bla bla
Am I doing something wrong? Can someone explain that to me?