[Oxide] 19:52 [Debug] at Oxide.Plugins.NoFallDmg.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0Code:using System.IO; void Loaded() { File.Delete("test.cs"); }
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
is this error;How can to working it?
Solved Using System.IO to delete a file? (not possible)
Discussion in 'Hurtworld Development' started by 不是很会玩, Apr 20, 2016.
-
Wulf Community Admin
You can't use System.IO for security reasons. Plugins are sandboxed to prevent exactly what you are trying. Why do you need to delete a file?
-
so,i need use Delete() and Write() -
Wulf Community Admin
-
-
Wulf Community Admin
-