Hello guys i was making a cruise insim for fun and editing stuff in it. And i was thinking how can i make a CancelJob command? Im using C# And the code i got now is
if this is correct or wrong can you correct me? Thanks and i know this is wrong but i need help ;(
[Command("canceljob", "canceljob")]
public void canceljob(string Msg, string[] StrMsg, Packets.IS_MSO MSO)
{
clsConnection Conn = Connections[GetConnIdx(MSO.UCID)];
if (StrMsg.Length > 0)
{
if (Conn.JobToHouse2 == 1)
{
(Conn.JobToHouse2 == 0);
InSim.Send_MTC_MessageToConnection("^6--^7 Job Canceled!", MSO.UCID, 0);
}
}
}
if this is correct or wrong can you correct me? Thanks and i know this is wrong but i need help ;(