FS does not support both multiplayer and AI traffic simultaneously, so there is no AI information to obtain in multiplayer modes.
I think, in VB, you indicate hexadecimal by that leading & so I don't know why it would fail. However, the Microsoft compiler stupidly sign extends the D010 making the value FFFFD010 which will cause problems. You have to postpenf an & too I think: &D010&.
Do you mean "variable", not "variant"? Offsets are hexacimal numbers and are containable in an integer. You must be talking about the data to which the offset relates? Data can be of any length. This message I am writing now, for instances, can be thought of as one string which is several hundred bytes long.
You will see from the FSUIPC Programmer's Guide that the data at D010 is an array of structures (TCAS_DATA2) each of which is actually 20 bytes long. There can be 96 of these, so the real data length at offset D010 is 96 x 20 or 1920 bytes. Where exactly are you reading "48" from?
You find the one you want in the complete list of planes within range, of course. How else? How are you identifying the plane? By position, by an ID of some kind?
Regards,
Pete
So, you are meaning that I can not build an radar contact program with FSUIPC?
Else, how can I get information about the planes that connected to the multiplayer?
And, I tried to write &D010&, and it still cause me a problem. The error is:
Compile Error:
expected: expression.
Here is my code:
Dim AIDat As Variant
Call FSUIPC_Read(&D010&, 48, VarPtr(AIDat), dwResult)
Label1 = AIDat
The variant type is because I don't know what type I need, to this offset, I don't know what type of variable is 48 size long.
Thanck in advance.
Nahi.