- Joined
- Oct 30, 2009
- Messages
- 14,020
- Reaction score
- 4
- Points
- 0
Is `panel2dtex` a public static variable of the `ShuttleD` class, which is accessible from the code that is assigning a value to it?ShuttleD:anel2dtex = oapiLoadTexture (“ShuttleD\\MainPanel.dds”);
For some reason, the compiler is saying that ShuttleD (as in the file directory, where the texture is located) is undefined. That doesnt make sense does it?
It isn't saying the directory isn't defined, but that ShuttleD symbol (as in code) is undefined.
By the way, there are "\\" in the path, because backspace is treated by compiler as an escape character (to put special characters in code without using their actual representation).