SolvedStructs

Posts 1–6 of 6 · Page 1 of 1
Structs
Help 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;
};
try like that

Code:
struct CBase()
{
CPlayer* local;
char unknown0[1169872];
CPlayer** player;
}
Quote Originally Posted by BlackLite View Post
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
Quote Originally Posted by bzh View Post
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.
Quote Originally Posted by Hell_Demon View Post
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
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.
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us