Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~806 People Reached
Favorite Forums
Favorite Tags
c++ x 17
Member Avatar for gattispilot

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 …

Member Avatar for vijayan121
0
101
Member Avatar for gattispilot

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 …

Member Avatar for Ancient Dragon
0
86
Member Avatar for gattispilot

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 …

Member Avatar for gattispilot
0
333
Member Avatar for gattispilot

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 …

Member Avatar for Ancient Dragon
0
91
Member Avatar for gattispilot

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 …

Member Avatar for gattispilot
0
195