The online racing simulator
InSim.NET - ClickID's
(3 posts, started )
InSim.NET - ClickID's
Hi again,

I'm trying to make it so that if i click a button a text will be displayed. I know it sounds nooby but I don't get anything that insim.net has :P Read the insim file already cant find anything :P I thougth like private void ButtonClick or something then tried it out and found out it dident work

Any help? Thanks!

Yoran
What do you mean by doesn't work? Doesn't function or doesn't compile? It's very hard to guess without seeing any code.

Generally you just first bind the button click event to a method:

<?php 
insim
.Bind<IS_BTC>(ButtonClick);
?>

And it should work

<?php 
void ButtonClick
(Insim insimIS_BTC btc) {
    
// do something here
    
insim.Send("/msg Look a button!");
    
// do something more
    // 
}
?>

Forgot to bind it :P Nooby mistakes

Thanks!
Yoran

InSim.NET - ClickID's
(3 posts, started )
FGED GREDG RDFGDR GSFDG