Original Post
Hello,
I had a script class, defined as such:
The issue is with "s32 getWindowId()", when attempting to call this function, I get:
When I change the return value to "void" so the function declaration reads "void getWindowId()" I can call the function fine, as well as all of the other functions in the class (all void).
Is there something I'm not doing right? I tried the property accessors, but I still get that same error message.
Thanks,
Brian
I had a script class, defined as such:
class Console {
Console()
{
//Initialization...
ID_GUI_CONSOLE_WINDOW = 100;
}
~Console()
{
}
void autocomplete()
{
}
int getWindowId()
{
return ID_GUI_CONSOLE_WINDOW;
}
private int ID_GUI_CONSOLE_WINDOW;
}
The issue is with "s32 getWindowId()", when attempting to call this function, I get:
Engine 0: Exception! Line: 0 Func: int Console::getWindowId()
String: Null pointer access.
When I change the return value to "void" so the function declaration reads "void getWindowId()" I can call the function fine, as well as all of the other functions in the class (all void).
Is there something I'm not doing right? I tried the property accessors, but I still get that same error message.
Thanks,
Brian