lpObj is a pointer to a type OBJECTSTRUCT which is a struct. The struct OBJECTSTRUCT doesn't have a member called PlayerId. Thats's why the compiler is complaining about lpObj->PlayerID
Then where does PlayerID as an int come from? Where else in the program is this used? Sorry, but you are going to have to do some investigation work to find out what PlayerID (as a type int) is supposed to be, where it should be stored, where it should be set and where it is beibg used.
Where is PlayerID defined? Its not defined in the user.h file in post #3.
All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/
The issue is not just defining PlayerID - the real issue is how it's used - where it is set etc. I can't really help you wth that. You are going to have to go through all the code and understand how it's used.
To get the code to compile, just add this to the OBJECTSTRUCT struct in user.h at the end of the struct definiton.
Code:
int GreatDefBuff;
int GreatDamBuff;
int PlayerID;
however, this won't mean that the program will work correctly because it won't as PlayerID isn't been set anywhere. You'll need to work out where and how to set it.
All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/
Not really as the code requires PlayerID to be of type int as a member of OBJECTSTRUCT.
All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/