chrizza132
16th November 2010, 11:37
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
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?
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
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?