How would i do something like:
This returns an error.Code:Menu->AddItem(0, "You have " << Plr->MPoints << " points.", 1);
How would i do something like:
This returns an error.Code:Menu->AddItem(0, "You have " << Plr->MPoints << " points.", 1);
Shouldn't it be:
Code:Menu->AddItem(0, "You have " << Plr->getMPoints() << " points.", 1);
No i get getMPoints is not a member of Player, but does it really matter?
If mPoints is a private member, then the only way you can access it is by making a public getter/setter. I don't know how you've programmed it, but if mPoints is a private member, then you have to make a public getter/setter for it.
Last edited by Link_S; 09-19-2010 at 01:51 PM. Reason: included a quote by misstake..
Why do I need a signature?
Lol i guess i should :P
Java != C*
This will work if you are using the standard namespace std, which I'm pretty sure ArcEmu does.Code:stringstream message; message << "You have " << Plr->MPoints << " points."; Menu->AddItem(0, message.str().c_str(), 1);
If not, then just change stringstream to std::stringstream.
Well it looks like you're trying to mix Java syntax with C operations.