Hi all
I want to repair lang file for EventManager and other
The problem is with GetMessage so i look with an other plugin such as Vanish for region dev:
I can see: PrintToChat(player, Lang("CantDamageBuilds", player.UserIDString));
And EventManager:
So maybe know the differences between GetMessage and PrintToChat can help me for repair it ?Code:{ if (!EventStarted) return null; EventPlayer eplayer = player.GetComponent<EventPlayer>(); if (eplayer == null) return null; return GetMessage("CanShop"); }
Thanks !
Solved Difference between PrintToChat and GetMessage?
Discussion in 'Rust Development' started by Cataclysme, Oct 19, 2016.
-
Wulf Community Admin
PrintToChat sends a message to the chat, and GetMessage is what Lang wraps in your example. Entirely different things. The GetMessage from EventManager is the same as Lang, just named differently but they both wrap the same actual GetMessage method.
What you'd want to do to fix EventManager is change this:
Code:return GetMessage("CanShop", player.UserIDString); -
don't, event manager is under development, there is no point in trying to fix it
-
You know if KillYou has repair it on the public testing ?
Ok thanks Wulf
So i don't touch this plugin ? I try to repair an other plug ?
I just try to learn C# with Oxide API it's soo different xD
[DOUBLEPOST=1476887589][/DOUBLEPOST]Don't work with this example: "No Overload for method GetMessage takes 2 Arguments"
Code:object CanEventJoin(BasePlayer player) { if (!EventOpen) return GetMessage("EventClosed", player.UserIDString); if (EventMaxPlayers != 0 && EventPlayers.Count >= EventMaxPlayers) return string.Format(GetMessage("MessagesEventMaxPlayers"), EventGameName); return null; }Last edited by a moderator: Oct 19, 2016
