The online racing simulator
Insim Code Help (Auto Message)
(5 posts, started )
Insim Code Help (Auto Message)
hey guys

im currently coding my insim and im stuck on getting it to auto message well it doesnt work properly

it will say all 3 messages but it stops at the thrid one here's the code i have


Quote :void Automsg_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
try
{
switch (TempMessage)
{
case 1:
InSim.Send_MST_Message("/msg ^1REMEMBER: ^7Drive on the ^3RIGHT ^7side of the road!");
break;


case 2:
InSim.Send_MST_Message("/msg ^7For more updates, events, and more,");
InSim.Send_MST_Message("/msg ^7Access us at ^3http://dscruise.co.cc/");
break;

case 3:
InSim.Send_MST_Message("/msg ^7Report a player, Abuse or Ramming");
InSim.Send_MST_Message("/msg ^7Post a report on ^3http://dscruise.co.cc");


break;


}
TempMessage += 1;
}
catch
{

}
}

i have set all the timers and everything just doesnt want to reapeat

could anyone help me?
i think thats my code on GIR Cruise InSim

here is the parameter to fix it

don't use switch i just use if (TempMessage == 1)
Quote from skywatcher122 :i think thats my code on GIR Cruise InSim

here is the parameter to fix it

don't use switch i just use if (TempMessage == 1)

that is your code

im using it in my insim im building it from scratch.


btw that still didnt work it gets to the last msg and then stops alltogehter doesnt restart at message 1
here is the reason why it doesnt reset to 1

add on your case 3:
TempMessage = 1;

and thats it
Quote from skywatcher122 :here is the reason why it doesnt reset to 1

add on your case 3:
TempMessage = 1;

and thats it

got it to work had to put TempMessage = -2; and now it reapeats thanks skywatcher for your help
-
(MariusMM) DELETED by MariusMM

Insim Code Help (Auto Message)
(5 posts, started )
FGED GREDG RDFGDR GSFDG