The online racing simulator
Making a close button ?
(4 posts, started )
#1 - sun
Making a close button ?
Hi

I made my Welcome message when somebody joins the server but how do i make a close button so it will close that Welcome message ?

if any one can help please post.

Thanks again! Owen. s2 Licenced.
read below, you need to create a function to send this packet to the current player's UCID:

// To delete one button or clear all buttons, send this packet :

struct IS_BFN // Button FunctioN - delete buttons / receive button requests
{
byte Size; // 8
byte Type; // ISP_BFN
byte ReqI; // 0
byte SubT; // subtype, from BFN_ enumeration (see below)

byte UCID; // connection to send to or from (0 = local / 255 = all)
byte ClickID; // ID of button to delete (if SubT is BFN_DEL_BTN)
byte Inst; // used internally by InSim
byte Sp3;
};

enum // the fourth byte of IS_BFN packets is one of these
{
BFN_DEL_BTN, // 0 - instruction : delete one button (must set ClickID)
BFN_CLEAR, // 1 - instruction : clear all buttons made by this insim instance
BFN_USER_CLEAR, // 2 - info : user cleared this insim instance's buttons
BFN_REQUEST, // 3 - user request : SHIFT+B or SHIFT+I - request for buttons
};

#3 - sun
ok but where would i put that code ?
If you dont know... then maybe you should start by learning how to program first?

the code above has nothing to do with sending the packets. But it will help you to make your own method to do so in a programming language of your choice.... If you dont understand it, not my problem.

Based on your other posts, you just expect ppl to spoon-feed you. I'm not gonna be one of them.

But, an example of calling that method in C# would be:

currInfoPlayer = listOfPlayers.getPlayerByUCID(btc.UCID);
ClearButton(currInfoPlayer);


Making a close button ?
(4 posts, started )
FGED GREDG RDFGDR GSFDG