0x32789
Expert
How would I read the parameter type CString in a bitstream? and if I want to write, how'd I do it aswell?
The RPC Parameters for SetPlayerObjectMaterial(Text)- ID: 84 is:
Parameters For MaterialText: UINT16 wObjectID, UINT8 MaterialType, UINT8 MaterialID, UINT8 MaterialSize, UINT8 fontNameLength, char fontName[], UINT8 FontSize, UINT8 Bold, UNIT32 FontColor, UNIT32 BackgroundColor, UNIT8 Align, CSTRING text[2048]
as it says, CSTRING text[2048]
I don't know how to do it, I have tried to read it as a char with 2048 length, still can't figure out.
Did some googling, learned it has to do something with encoding and decoding but I got no idea.
Also I'm using minimal raknet libraries or the ones present in s0biet. Can someone provide help or the decode function, I got no idea how it's done.
Thx.
The RPC Parameters for SetPlayerObjectMaterial(Text)- ID: 84 is:
Parameters For MaterialText: UINT16 wObjectID, UINT8 MaterialType, UINT8 MaterialID, UINT8 MaterialSize, UINT8 fontNameLength, char fontName[], UINT8 FontSize, UINT8 Bold, UNIT32 FontColor, UNIT32 BackgroundColor, UNIT8 Align, CSTRING text[2048]
as it says, CSTRING text[2048]
I don't know how to do it, I have tried to read it as a char with 2048 length, still can't figure out.
Did some googling, learned it has to do something with encoding and decoding but I got no idea.
Also I'm using minimal raknet libraries or the ones present in s0biet. Can someone provide help or the decode function, I got no idea how it's done.
Thx.