I will rediscover a theme
Code:[Error] Failed to run a 60.00 timer in MyPlugin (NullReferenceException: Object reference not set to an instance of an object) [Debug] at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0The mistake appears after passing of one minuteCode:-- in command _P.MuteTimer[recipient] = timer.Repeat(60, mutetime, self:UnmuteTimer(recipient), self.Plugin)function PLUGIN:UnmuteTimer(player) playerID = rust.UserIDFromPlayer(player) if P.MutedTime[playerID] == 0 then rust.SendChatMessage(player, "Chat unblocked") return end P.MutedTime[playerID] = P.MutedTime[playerID] - 1 end
Solved Failed to run a timer (Lua)
Discussion in 'Rust Development' started by SwipoStyle, Jul 21, 2015.
-
player?.net != null
-
After all something with the timer
[DOUBLEPOST=1437729923,1437485439][/DOUBLEPOST]Up -
Code:_MuteTimer[player] = timer.Repeat(10, 0, function() self:UnmuteTimer(player) end, self.Plugin)