Sam sites still requiring electricityFixed
Rulonoboev16

После перезагрузки сервер ПВО требует электричества

Or after rebooting the plugin

Rulonoboev16
Original Poster
The player has to reinstall air defense to work without electricity

here is the error from the console:

Failed to call hook 'PowerlessTurretsCommand' on plugin 'PowerlessSAMs v1.0.3' (IndexOutOfRangeException: Index was outside the bounds of the array.)
at Oxide.Plugins.PowerlessSAMs.PowerlessTurretsCommand (BasePlayer player, System.String cmd, System.String[] args) [0x0005f] in :0 
at Oxide.Plugins.PowerlessSAMs.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00086] in :0 
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
August
Plugin Developer
I'll look into fixing it.

Looks like there may be an issue with the arguments of the command. What exactly did you type?
Rulonoboev16
Original Poster
I just gave privileges to groups of people. But after rebooting, sam requires electricity
August
Plugin Developer
The error you showed me is misusage from the command. I'll look into the other issue, but I'm unsure if you are reloading the plugin or restarting the server.

Okay, so the toggling off of the SAMs is actually by feature, not an error. I'll remove it.

Merged post

Fixed. See v1.0.4
Rulonoboev16
Original Poster
It stops working when the plugin reboots and when the server reboots. Equally When will it fix?

Merged post

thanks for the quick fix

Merged post

The problem has not been resolved.

After rebooting server, the air defense requires electricity