hey guys if i want to make that players can vote in two sites and get double reward how i need to write code?

Voter Rewards
Rewards players who vote for your server on rust-servers.net
Total Downloads: 3,445 - First Release: Jan 5, 2015 - Last Update: Jun 18, 2017
- 5/5, 18 likes
-
Attached Files:
-
-
hey @k1lly0u , I missunderstood the change you made when taking over.. and now Im not that happy anymore
I thought you added the possibility to use more then one tracker. thats what I need, I want this plugins options but with the posibility to use all 3 of those trackers. I hope you could really fix this
-
Im not getting any points for voting. it says i voted and when i vote again it says i don't have any votes but when i do /reward i have 0 points. it was working but after the rust update, it broke.
-
Can some1 make it to work on 2 websites ? Like Rust Server and Top Rust Server in the same time ? Thanks
-
-
-
just had this error show in console and not sure what it means:
Code:(19:51:05) | Failed to call hook 'SendHelpText' on plugin 'Voter v2.1.0' (FormatException: Input string was not in a correct format.) (19:51:05) | at System.String.ParseFormatSpecifier (System.String str, System.Int32& ptr, System.Int32& n, System.Int32& width, System.Boolean& left_align, System.String& format) [0x00000] in <filename unknown>:0 at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (System.String format, System.Object arg0) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Voter.SendHelpText (.BasePlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Voter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
-
@k1lly0u please do implement the possibility to have more then one voting site, it really should be possible to have both rust-servers.net, toprustservers.com and beancan.io
-
same here :-/ please help
Code:Failed to call hook 'SendHelpText' on plugin 'Voter v2.1.0' (FormatException: Input string was not in a correct format.) (00:52:08) | at System.String.ParseFormatSpecifier (System.String str, System.Int32& ptr, System.Int32& n, System.Int32& width, System.Boolean& left_align, System.String& format) [0x00000] in <filename unknown>:0 at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (System.String format, System.Object arg0) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Voter.SendHelpText (.BasePlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Voter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
Last edited by a moderator: Jul 28, 2017 -
@k1lly0u hey man, could you please make it possible for multiple servers to be connected to each other, so if I vote on one of my servers and Im on a second one I will get the voting point on the server Im connected on when I do /vote ingame
-
Hi! Can i get an exemple of the Voter.json to use multiple Tracker type?
I tryied to write somes lines, checked with Jsonvalidator, but i got an error when reloading.
Thanks.
Code:}, "Tracker Information": [{ "API Key": "yyyyyyy", "Points received per vote": 1, "Tracker type (TopRustServers, RustServers, Beancan)": "RustServers" }, { "API Key": "xxxxxx", "Points received per vote": 1, "Tracker type (TopRustServers, RustServers, Beancan)": "TopRustServers" } ] }
-
i got this since 3 month ,
any one can help?
Code:Failed to call hook 'SendHelpText' on plugin 'Voter v2.1.0' (FormatException: Input string was not in a correct format.) (18:50:05) | at System.String.ParseFormatSpecifier (System.String str, System.Int32& ptr, System.Int32& n, System.Int32& width, System.Boolean& left_align, System.String& format) [0x00000] in <filename unknown>:0 at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (System.String format, System.Object arg0) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Voter.SendHelpText (.BasePlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Voter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod 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.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
-
cant we just like run 3 copies of the plugin voter (1,2,3) connected to the diff sites or would there not be a way to combine points
-
Could someone help me debugging this im turning crazy json validators r not really helping :
Code:{ "Chat Commands": { "Chat Command - Reward Menu": "reward", "Chat Command - Vote Checking": "vote" }, "Messaging Options": { "Activate automated broadcasting": true, "Automated broadcast timer (minutes)": 30, "Message color (Primary)": "#ce422b", "Message color (Secondary)": "#939393" }, "Reward List": { "0": { "Reward Cost": 1, "Reward Items": [{ "Item Amount": 8, "Item Shortname": "explosive.satchel", "Item Skin ID": 0 }], "Reward Money (Economics)": 0, "Reward RP (Server Rewards)": 3 }, "1": { "Reward Cost": 2, "Reward Items": [{ "Item Amount": 10000, "Item Shortname": "hq.metal.ore", "Item Skin ID": 0 }, { "Item Amount": 1, "Item Shortname": "supply.signal", "Item Skin ID": 0 }, { "Item Amount": 100000, "Item Shortname": "stones", "Item Skin ID": 0 }, { "Item Amount": 100000, "Item Shortname": "wood", "Item Skin ID": 0 }, { "Item Amount": 150000, "Item Shortname": "sulfur.ore", "Item Skin ID": 0 } ], "Reward Money (Economics)": 0, "Reward RP (Server Rewards)": 3 }, "2": { "Reward Cost": 3, "Reward Items": [{ { "Item Amount": 100000, "Item Shortname": "hq.metal.ore", "Item Skin ID": 0 }, { "Item Amount": 1, "Item Shortname": "supply.signal", "Item Skin ID": 0 }, { "Item Amount": 1000000, "Item Shortname": "stones", "Item Skin ID": 0 }, { "Item Amount": 1000000, "Item Shortname": "wood", "Item Skin ID": 0 }, { "Item Amount": 1500000, "Item Shortname": "sulfur.ore", "Item Skin ID": 0 } "Item Amount": 5, "Item Shortname": "metal.facemask", "Item Skin ID": 0 }], "Reward Money (Economics)": 0, "Reward RP (Server Rewards)": 3 } }, "Tracker Information": { "API Key": "", "Points received per vote": 1, "Tracker type (TopRustServers, RustServers, Beancan)": "RustServers" } }
Code:Error: Parse error on line 56: ...ard Items": [{ { "Item Amount" ---------------------^ Expecting 'STRING', '}', got '{'
-
Code:
{ "Chat Commands": { "Chat Command - Reward Menu": "reward", "Chat Command - Vote Checking": "vote" }, "Messaging Options": { "Activate automated broadcasting": true, "Automated broadcast timer (minutes)": 30, "Message color (Primary)": "#ce422b", "Message color (Secondary)": "#939393" }, "Reward List": { "0": { "Reward Cost": 1, "Reward Items": [{ "Item Amount": 8, "Item Shortname": "explosive.satchel", "Item Skin ID": 0 }], "Reward Money (Economics)": 0, "Reward RP (Server Rewards)": 3 }, "1": { "Reward Cost": 2, "Reward Items": [{ "Item Amount": 10000, "Item Shortname": "hq.metal.ore", "Item Skin ID": 0 }, { "Item Amount": 1, "Item Shortname": "supply.signal", "Item Skin ID": 0 }, { "Item Amount": 100000, "Item Shortname": "stones", "Item Skin ID": 0 }, { "Item Amount": 100000, "Item Shortname": "wood", "Item Skin ID": 0 }, { "Item Amount": 150000, "Item Shortname": "sulfur.ore", "Item Skin ID": 0 } ], "Reward Money (Economics)": 0, "Reward RP (Server Rewards)": 3 }, "2": { "Reward Cost": 3, "Reward Items": [{ "Item Amount": 100000, "Item Shortname": "hq.metal.ore", "Item Skin ID": 0 }, { "Item Amount": 1, "Item Shortname": "supply.signal", "Item Skin ID": 0 }, { "Item Amount": 1000000, "Item Shortname": "stones", "Item Skin ID": 0 }, { "Item Amount": 1000000, "Item Shortname": "wood", "Item Skin ID": 0 }, { "Item Amount": 1500000, "Item Shortname": "sulfur.ore", "Item Skin ID": 0 }, { "Item Amount": 5, "Item Shortname": "metal.facemask", "Item Skin ID": 0 } ], "Reward Money (Economics)": 0, "Reward RP (Server Rewards)": 3 }, "Tracker Information": { "API Key": "", "Points received per vote": 1, "Tracker type (TopRustServers, RustServers, Beancan)": "RustServers" } } }
-
thanks
what was it -
nothing shows up in game ....my rcon console gives me this :
Code:ExType: JsonSerializationException Failed to call hook 'OnServerInitialized' on plugin 'Voter v2.1.0' (FormatException: Input string was not in the correct format) at System.Int32.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00000] in <filename unknown>:0 at System.Int32.Parse (System.String s, IFormatProvider provider) [0x00000] in <filename unknown>:0 at System.Convert.ToInt32 (System.String value, IFormatProvider provider) [0x00000] in <filename unknown>:0 at System.String.System.IConvertible.ToInt32 (IFormatProvider provider) [0x00000] in <filename unknown>:0 at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0 at System.Convert.ChangeType (System.Object value, System.Type conversionType, IFormatProvider provider) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x00000] in <filename unknown>:0
-
sorry was rather late when posting.
Had another look with a clear non-blazed brain lol:
Code:{ "Chat Commands": { "Chat Command - Reward Menu": "reward", "Chat Command - Vote Checking": "vote" }, "Messaging Options": { "Activate automated broadcasting": true, "Automated broadcast timer (minutes)": 30, "Message color (Primary)": "#ce422b", "Message color (Secondary)": "#939393" }, "Reward List": { "0": { "Reward Cost": 1, "Reward Items": [ { "Item Amount": 8, "Item Shortname": "explosive.satchel", "Item Skin ID": 0 } ], "Reward Money (Economics)": 0, "Reward RP (Server Rewards)": 3 }, "1": { "Reward Cost": 2, "Reward Items": [ { "Item Amount": 10000, "Item Shortname": "hq.metal.ore", "Item Skin ID": 0 }, { "Item Amount": 1, "Item Shortname": "supply.signal", "Item Skin ID": 0 }, { "Item Amount": 100000, "Item Shortname": "stones", "Item Skin ID": 0 }, { "Item Amount": 100000, "Item Shortname": "wood", "Item Skin ID": 0 }, { "Item Amount": 150000, "Item Shortname": "sulfur.ore", "Item Skin ID": 0 } ], "Reward Money (Economics)": 0, "Reward RP (Server Rewards)": 3 }, "2": { "Reward Cost": 3, "Reward Items": [ { "Item Amount": 100000, "Item Shortname": "hq.metal.ore", "Item Skin ID": 0 }, { "Item Amount": 1, "Item Shortname": "supply.signal", "Item Skin ID": 0 }, { "Item Amount": 1000000, "Item Shortname": "stones", "Item Skin ID": 0 }, { "Item Amount": 1000000, "Item Shortname": "wood", "Item Skin ID": 0 }, { "Item Amount": 1500000, "Item Shortname": "sulfur.ore", "Item Skin ID": 0 }, { "Item Amount": 5, "Item Shortname": "metal.facemask", "Item Skin ID": 0 } ], "Reward Money (Economics)": 0, "Reward RP (Server Rewards)": 3 } }, "Tracker Information": { "API Key": "", "Points received per vote": 100, "Tracker type (TopRustServers, RustServers, Beancan)": "RustServers" } }
-
still getting this error and it wont work at all but it says its loaded :
Code:Voter was compiled successfully in 1718ms Unloaded plugin VoteRewards v2.1.0 by k1lly0u ExType: JsonSerializationException Failed to call hook 'OnServerInitialized' on plugin 'Voter v2.1.0' (FormatException: Input string was not in the correct format) at System.Int32.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00000] in <filename unknown>:0 at System.Int32.Parse (System.String s, IFormatProvider provider) [0x00000] in <filename unknown>:0 at System.Convert.ToInt32 (System.String value, IFormatProvider provider) [0x00000] in <filename unknown>:0 at System.String.System.IConvertible.ToInt32 (IFormatProvider provider) [0x00000] in <filename unknown>:0 at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0 at System.Convert.ChangeType (System.Object value, System.Type conversionType, IFormatProvider provider) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x00000] in <filename unknown>:0 Loaded plugin VoteRewards v2.1.0 by k1lly0u
-
try this..
change:
Code:"Points received per vote": 100,
Code:"Points received per vote": 1,