The online racing simulator
[SOLVED]Buttons
(8 posts, started )
[SOLVED]Buttons
I 'am noob to create InSim application.
Please show me with SS 's how to show button to all players on server, for all drivers and for 1 driver or player.
#2 - Silox
I suggest you just go try it Experiment a bit... Mess around a bit... That's the best way to learn this.

If we say the code, you don't learn it, you just copy it...
Ok. I'm misiek08 but from second licence. How to show button to all players on server. I don't understand how is user id for send button to all. Ofc in C#
you have to send a button to each user.
Or use 255 for the send ID
Quote from misiek08 :I check this. If this work you are the best.

struct IS_BTN // BuTtoN - button header - followed by 0 to 240 characters
{
byte Size; // 12 + TEXT_SIZE (a multiple of 4)
byte Type; // ISP_BTN
byte ReqI; // non-zero (returned in IS_BTC and IS_BTT packets)
[b]byte UCID; // connection to display the button (0 = local / 255 = all)[/b]

byte ClickID; // button ID (0 to 239)
byte Inst; // some extra flags - see below
byte BStyle; // button style flags - see below
byte TypeIn; // max chars to type in - see below

byte L; // left : 0 - 200
byte T; // top : 0 - 200
byte W; // width : 0 - 200
byte H; // height : 0 - 200

// char Text[TEXT_SIZE]; // 0 to 240 characters of text
};

It's in the docs.
Thx all. Works.

[SOLVED]Buttons
(8 posts, started )
FGED GREDG RDFGDR GSFDG