hello,
i have my own insim. everything is allright but i have one problem.
!fine makes me problems^^
i hope someone help me
here the code i used:
case "!fine":
if (Connections[GetConnIdx(MSO.UCID)].IsOfficerORCadet == 1)
{
try
{
foreach (clsConnection Conn in Connections)
{
if (Conn.Username == Msg.Remove(0, StrMsg[0].Length + StrMsg[1].Length + 2))
{
Conn.Cash -= int.Parse(StrMsg[1]);
InSim.Send_BTN_CreateButton("^2€" + Connections[GetConnIdx(MSO.UCID)].Cash, Flags.ButtonStyles.ISB_C1, 5, 15, 0, 65, 5, MSO.UCID, 2, false);
InSim.Send_MST_Message("/msg " + Conn.PlayerName + " ^7fined ^2€" + int.Parse(StrMsg[1]));
}
else
{
InSim.Send_MTC_MessageToConnection("^6Command not Authorized or is wrong!", MSO.UCID, 0);
}
}
}
catch
{
}
}
i have my own insim. everything is allright but i have one problem.
!fine makes me problems^^
i hope someone help me
here the code i used:
case "!fine":
if (Connections[GetConnIdx(MSO.UCID)].IsOfficerORCadet == 1)
{
try
{
foreach (clsConnection Conn in Connections)
{
if (Conn.Username == Msg.Remove(0, StrMsg[0].Length + StrMsg[1].Length + 2))
{
Conn.Cash -= int.Parse(StrMsg[1]);
InSim.Send_BTN_CreateButton("^2€" + Connections[GetConnIdx(MSO.UCID)].Cash, Flags.ButtonStyles.ISB_C1, 5, 15, 0, 65, 5, MSO.UCID, 2, false);
InSim.Send_MST_Message("/msg " + Conn.PlayerName + " ^7fined ^2€" + int.Parse(StrMsg[1]));
}
else
{
InSim.Send_MTC_MessageToConnection("^6Command not Authorized or is wrong!", MSO.UCID, 0);
}
}
}
catch
{
}
}