1. Karltubing

    Karltubing Scavenger

    I have been using"random.Next" on a couple of plugins I am working on, but if I am "using Oxide.Core" and "using System" I get an error for using both , if i comment out "using System" I cant use random.Next. If i comment out " using oxide.core" the i cant use

    _rewardDefaults = Interface.GetMod().DataFileSystem.ReadObject<Collection<string[]>>("SavedRewardDefaults");


    Interface.GetMod().DataFileSystem.WriteObject("SavedRewardDefaults", _rewardDefaults);

    I am pretty sure its me doing something wrong. How can I get/save a cofig file and data file?
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    You'd need to define which one you want to use, because of the conflict.

    using Random = System.Random;