Using this RP emulator, very new to coding etc. When you shoot using the command, everytime its supposed to take 2 energy each shot but doesnt.
This is the code for it:
Anyone have any idea? please and thanks
This is the code for it:
Code:
Instance.BroadcastMessage(RoomChatComposer.Compose(Actor.Id, "*Shoots " + Username + " with their G3 causing " + HitPoint + " damage! [-2e]*", 0, ChatType.Shout));
Instance.BroadcastMessage(RoomChatComposer.Compose(TargetActor.Id, "[" + Target.Health + "/100]", 0, ChatType.Shout));
Session.CharacterInfo.UpdateScore(MySqlClient, +reward);
Session.CharacterInfo.UpdateWantedLVL(MySqlClient, 1);
Session.CharacterInfo.UpdateEnergy(MySqlClient, -2);
Anyone have any idea? please and thanks