Jump to content

2 Screenshots

  • 46.5k
  • 853
  • 18.88 kB
This area is intended for discussion and questions. Please use the support area for reporting issues or getting help.

Recommended Comments

DutchPrelude

Posted

is there a possibility to exclude the last winner ? 
 

DutchPrelude

Posted

it broke during last update

 

  Quote

Failed to call hook 'LoterieCommand' on plugin 'CLottery v2.1.0' (JsonReaderException: Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path '', line 1, position 1.) at Newtonsoft.Json.Linq.JArray.Load (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Linq.JsonLoadSettings settings) [0x0004c] in <7126fb4f5c5b40029458a4f975f98d13>:0 at Newtonsoft.Json.Linq.JArray.Load (Newtonsoft.Json.JsonReader reader) [0x00000] in <7126fb4f5c5b40029458a4f975f98d13>:0 at Newtonsoft.Json.Converters.HashSetConverter.ReadJson (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue, Newtonsoft.Json.JsonSerializer serializer) [0x00041] in <7126fb4f5c5b40029458a4f975f98d13>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable (Newtonsoft.Json.JsonConverter converter, Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue) [0x00055] in <7126fb4f5c5b40029458a4f975f98d13>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000d9] in <7126fb4f5c5b40029458a4f975f98d13>:0 at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00053] in <7126fb4f5c5b40029458a4f975f98d13>:0 at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <7126fb4f5c5b40029458a4f975f98d13>:0 at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <7126fb4f5c5b40029458a4f975f98d13>:0 at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <7126fb4f5c5b40029458a4f975f98d13>:0 at Oxide.Core.Configuration.DynamicConfigFile.ReadObject[T] (System.String filename) [0x00028] in :0 at Oxide.Core.DataFileSystem.ReadObject[T] (System.String name) [0x00021] in :0 at Oxide.Plugins.CLottery.LoadData () [0x0000b] in :0 at Oxide.Plugins.CLottery.CheckHasGifts (BasePlayer player) [0x00026] in :0 at Oxide.Plugins.CLottery.LoterieCommand (BasePlayer player, System.String command, System.String[] args) [0x0000c] in :0 at Oxide.Plugins.CLottery.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00090] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

Expand  

 

Delltus

Posted

UP

 

  • Moderator
Mals

Posted (edited)

change this line 317:

            List<BasePlayer> WithoutAdmin = (BasePlayer.activePlayerList.Where(x => !x.IsAdmin).Select(player => player)).ToList();

to:

            List<BasePlayer> WithoutAdmin = (BasePlayer.activePlayerList.Select(player => player)).ToList();

and line 348 as well.

I believe that takes out the admin filter.  But normally Admins on most servers do not play, and do not get things, thus this design choice.  Perhaps they might consider adding a config option for this?

Edited by Mals
  • Like 1
aSaHi_HAL9000

Posted

Hi!

What are the percentage chances distributed if you specify multiple Gifts for a given number of players?

THX!

rode85

Posted

Needs to be a way to move the lottery information somewhere else on the screen and a timer. It stays up forever unless you disconnect from server and jump back in. The works overlap each other as well.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 1

User Feedback

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.