:) thx for the help i finally got it running lets consider this thread CLSOED

oh sorry but i gt another error lol so much for closed

void PLAYER! !AddExperience(int amount)
{
    SetExperience(experience = amount);
}

and this is the error

error: expected initializer before '!' token

void PLAYER::AddExperience(int amount)
{
    SetExperience(experience = amount);
}

I'd like to suggest a beginner-friendly C++ Tutorial.

i didn't find anything in the tutorial that helped me with my game..

It (or any other tutorial) may come in handy later, if not immediately -- I tend to think this way, because you had obvious problems with basic C++ syntax.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.