Hi, every programmer here.
I am new to programming and wants to ask some questions about setting the weather in FS2K4 by using FSUIPC in a C++ Program.
I know they are some stupid questions. LOL. - -
1) I want to set the wind in the "Global" to 0, so I followed what the tutorial in the SDK said, set the weather DYNAMIC to 0, then call the function,
unsigned short Wcommand=NW_CLEAR;
FSUIPC_Read(0xC800,2,&Wcommand,&pdwResult);
FSUIPC_Process(&pdwResult);
I find the NW_CLEAR command did appeared in the LOG,
but that seems not working at all,(The Weather in FS still doesnt change...)
2) If i want to set a specific windspeed in "Global", How can I use the struct in the "NewWeather.h" (attached in the SDK)?Could anyone give an easy example of code?
3)After writting all the new weather Data into FS, Do I have to do something like "refreshing" to make the new setting take place?
Thank all you guys for helping me!!