Mordeus submitted a new resource:
day7 - Allows players to check when the next horde night is.
Read more about this resource...
DaySeven
Moved
Total Downloads: 705 - First Release: Mar 30, 2017 - Last Update: Mar 30, 2017
- 5/5, 5 likes
-
-
Bug in your code
Code:if (_cInfo != null) { NextFrame(() => { _cInfo.SendPackage(new NetPackageGameMessage(EnumGameMessages.Chat, string.Format(color, response),ServerName, false, "", false)); }); } else { _cInfo.SendPackage(new NetPackageGameMessage(EnumGameMessages.Chat, string.Format(color, error),ServerName, false, "", false)); }
-
Are you actually having a problem? Code is working for me and on our servers.
If you are referring to this:
Code:if (_cInfo != null)
hence the ! -
Wulf Community Admin
-
Ahh I see, I been ignoring that because its never null, really a useless piece of code.
I thought about pulling that part out, that was PrintToChat before, but I had to update it to use lang API for release, so I changed it to that not thinking about what I was doing.
I don't really see a reason to keep that in there anymore, it should never be null, as you stated.
plugin works fine as it is, so I will wait until next update to fix.
Thanks for pointing that out Stevasaurous, I will correct it in next update.
Sometimes we look at something so long, we dont actually see the problem...lol Thanks again.Last edited by a moderator: Mar 31, 2017 -
No problem, I also figured it would never be null (I actively tried to make it null through various ways in game and through console for my own plugin testing) but wanted to let you know
-
I'm getting "The Archive is either in unknown format or damaged." I'm on unable to open it with winrar?
-
Just download it and install it to your Oxide plugins directory, no extraction needed, its a C# file.
-
how do you add the plugins to a server
-
Just simply download this, then put it in your oxide/plugins directory.
-
It seems like the other 7DTD plugins have issues too. Here is the compiler log:
Code:DaySeven.cs(11,22): error CS0246: The type or namespace name `SevenDaysPlugin' could not be found. Are you missing an assembly reference? EconomicSystem.cs(14,25): error CS0246: The type or namespace name `SevenDaysPlugin' could not be found. Are you missing an assembly reference? MessageSystem.cs(15,27): error CS0246: The type or namespace name `SevenDaysPlugin' could not be found. Are you missing an assembly reference? Teleport.cs(14,22): error CS0246: The type or namespace name `SevenDaysPlugin' could not be found. Are you missing an assembly reference? DaySeven.cs(26,27): error CS0115: `Oxide.Plugins.DaySeven.LoadDefaultConfig()' is marked as an override but no suitable method found to override DaySeven.cs(49,21): error CS0246: The type or namespace name `ClientInfo' could not be found. Are you missing an assembly reference? EconomicSystem.cs(50,27): error CS0115: `Oxide.Plugins.EconomicSystem.LoadDefaultConfig()' is marked as an override but no suitable method found to override EconomicSystem.cs(214,22): error CS0246: The type or namespace name `Entity' could not be found. Are you missing an assembly reference? EconomicSystem.cs(214,37): error CS0246: The type or namespace name `DamageResponse' could not be found. Are you missing an assembly reference? EconomicSystem.cs(281,31): error CS0246: The type or namespace name `ClientInfo' could not be found. Are you missing an assembly reference? MessageSystem.cs(28,33): error CS0115: `Oxide.Plugins.MessageSystem.LoadDefaultConfig()' is marked as an override but no suitable method found to override MessageSystem.cs(74,29): error CS0246: The type or namespace name `ClientInfo' could not be found. Are you missing an assembly reference? Teleport.cs(21,27): error CS0115: `Oxide.Plugins.Teleport.LoadDefaultConfig()' is marked as an override but no suitable method found to override Teleport.cs(117,21): error CS0246: The type or namespace name `ClientInfo' could not be found. Are you missing an assembly reference? Teleport.cs(422,26): error CS0246: The type or namespace name `ClientInfo' could not be found. Are you missing an assembly reference?
I updated to the latest Oxide version for 7DTD which is Oxide 2.0 3614 for Alpha 16.3 according to the command line -
Wulf Community Admin
Edit: I think I know why. -