object CanUseUI(BasePlayer player, string json) { Puts("CanUseUI works!" + json); return…
- User
object CanUseUI(BasePlayer player, string json) { Puts("CanUseUI works!" + json); return null; }
- Assistant
- User
como eu pego dados do json em c3?
- Assistant
- User
se eu não souber que classe é, como eu pego uma parte do json?
- Assistant
- User
Failed to call hook 'CanUseUI' on plugin 'CustomButtons v2.0.71' (JsonReaderException: Error reading JObject from JsonReader. Current JsonReader item is not an object: StartArray. Path '', line 1, position 1.) at Newtonsoft.Json.Linq.JObject.Load (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Linq.JsonLoadSettings settings) [0x00057] in <271c58b7a8684db5a2c92be17a81f252>:0 at Newtonsoft.Json.Linq.JObject.Parse (System.String json, Newtonsoft.Json.Linq.JsonLoadSettings settings) [0x0000c] in <271c58b7a8684db5a2c92be17a81f252>:0 at Newtonsoft.Json.Linq.JObject.Parse (System.String json) [0x00000] in <271c58b7a8684db5a2c92be17a81f252>:0 at Oxide.Plugins.CustomButtons.CanUseUI (BasePlayer player, System.String json) [0x00000] in <318c22c572954495b33a93d2d5583d2c>:0 at Oxide.Plugins.CustomButtons.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00b6f] in <318c22c572954495b33a93d2d5583d2c>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <206a0f2c6ee141f38e2ad549cde44d70>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0
- Assistant
- User
eu só quero pegar o name: [CustomButtons] CanUseUI works![{"name":"UI.Kits.Kit.1","parent":"UI.Kits.Kit.1.Main","destroyUi":"UI.Kits.Kit.1","components":[{"type":"UnityEngine.UI.Image","color":"0 0 0 0"},{"type":"RectTransform","anchormin":"0 1","anchormax":"1 1"}]},{"name":"b4d0806defbd4cde8b64e10b2e159230","parent":"UI.Kits.Kit.1","components":[{"type":"UnityEngine.UI.Text","text":"KIT AVAILABLE TO RECEIVE","fontSize":10,"font":"robotocondensed-regular.ttf","align":"MiddleCenter","color":"0.188235294117647 0.188235294117647 0.188235294117647 1"},{"type":"RectTransform","anchormin":"0 1","anchormax":"1 1","offsetmin":"0 -100","offsetmax":"0 -75"}]}]
- Assistant