Having an unknown issue with a certain C++ code

It appears that the coding what im about to paste undearneath my message is wrong.
Could someone please take a small peek at it? Because im pulling my hair out here.

-

InstanceData* GetInstanceData_instance_halls_of_reflection(Map* map)
{
return new instance_halls_of_reflection(pMap);
}

void AddSC_instance_halls_of_reflection()
{
Script *newscript;
newscript = new Script;
newscript->Name = "instance_halls_of_reflection";
newscript->GetInstanceData = GetInstanceData_instance_halls_of_reflection;
newscript->RegisterSelf();
}







PS. It says that InstanceData at the top of the coding is undefined.

sincerely, Veteran-wow.
Last edited on
It says that InstanceData at the top of the coding is undefined.


Well then, the issue would probably be that you haven't defined InstanceData. Is there a header file somewhere defining it that you haven't included?
Yes it should work, I have different codes where Instancedata works as its supposed to, but for some reason in this piece of coding it does not. I have no clue why not, could it be a false/fake error? Or does that never happen?
Someone please able to help?
No one on this C++ forum? Hmm if no one here can find out I guess I can give up :(
Perhaps people would be willing to help if you tried their suggestions. For example, Moschops asks you if you've included the header where InstanceData is defined.

Did you?

Could you post all of your code?
could you please past the header file .. ?
Topic archived. No new replies allowed.