StructsHelp me Pls to solve this shit Error...... what is wrong about this structs? and when i compile it....it said [Error] expected specifier-qualifier-list before 'CPlayer' can anybody can help me? struct CBase { CPlayer* local; char unknown0[1169872]; CPlayer** player; };
Code: struct CPlayer; struct CBase { CPlayer* local; char unknown0[1169872]; CPlayer** player; }; Assuming you have the CPlayer struct in another file or later in the same file.
Originally Posted by BlackLite try like that Code: struct CBase() { CPlayer* local; char unknown0[1169872]; CPlayer** player; } CPlayer** player; Is that a normal dereference pointer times the value stored in player? I haven't seen this many times
Originally Posted by bzh CPlayer** player; Is that a normal dereference pointer times the value stored in player? I haven't seen this many times It's a 2 level pointer(a pointer to a pointer), which means it's most likely a pointer to an array of CPlayer pointers.
Originally Posted by Hell_Demon It's a 2 level pointer(a pointer to a pointer), which means it's most likely a pointer to an array of CPlayer pointers. Did not know, seems very good for the right opportunity to use that. Thank you