No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I have this code. but I get this error: chariot1.cpp c:\orbitertest\orbitersdk\samples\shuttlepb\chariot1.cpp(235) : warning C4700: local variable 'speedvec' used without having been initialized I was told that the oapiGetFocusShipAirspeedVector(speedvec) initialized the speedvec. Not sure how to fix this. What I am doing . Is to determine which direction a vessel is … |
|
This what I am trying to do. An elevator. so if the newdeck selected is different than where the elevator close the door, move the elevator and open the new door where is has issues is the value of edoor2 doesn't increase so the new door doesn't open. edoor1 does … |
|
I was told not to have global variables and given an example. Ifollowed it and now I get this error:[B]only const static integral data members can be initialized inside a class or struct on lines 50-85 [/B] [code]#define STRICT #define ORBITER_MODULE #define ENG 1 #define START 2 #define STOP 3 … |
|
I thouhgt I had this solved. But the value is 1 and it looks like if K is pressed then it changes to 0 and then back to 1. The value of start is defined as 0 at the first. There are if start=1 statements but none but this for … |
|
This is Orbiter: Ok what is wrong? I have start =0 at the beginning. then this: [code=cplusplus] case OAPI_KEY_K: // start if (start=0) start=0; else PlayVesselWave3(MySoundID,START,NOLOOP,255,22100); start=1; return 1; [/code] So start should be 0 until K is pressed. If K is pressed then the wav is played and start … |