Hello, my friend are making a "siren" for his cruise server when someone starts a chase it comes up in the screen.
It just doesn´t work,
PLEASE! Help us!
P.S. It doesn´t give any errors, it just won´t show up.
It just doesn´t work,
PLEASE! Help us!
P.S. It doesn´t give any errors, it just won´t show up.
void Siren_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
foreach (clsConnection C in Connections)
{
if (C.Siren != 0)
{
if (C.Siren == 1)
{
InSim.Send_BTN_CreateButton("^4(((((^7SIREN^4)))))", Flags.ButtonStyles.ISB_C1, 15, 74, 60, 63, 151, C.UniqueID, 2, fal
C.Siren = 10;
}
else if (C.Siren > 9)
{
if (C.Siren > 14)
C.Siren = 10;
InSim.Send_BTN_CreateButton("^4" + "((((".Insert((C.Siren % 10), "^1(^4") + "^7" + "SIREN" + "^4" + "))))".Insert(4 - (C.Siren % 10), "^1)^4"), Flags.ButtonStyles.ISB_C1, 15, 74, 60, 63, 151,
C.Siren++;
}
else if (C.Siren == 3)
{
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 151, C.UniqueID);
C.Siren = 0;
}
}
}