• Nazwa pluginu: RollTheDice
    Wersja pluginu: 1.0.5
    Wersja Oxide: 2.0.3814
    Gdy wpisuję komendę /roll nie pokazuje mi żadnych rolli, jakiś błąd w kodzie? Config od kolegi z forum, ja dodałem tylko kolorki do nazwy i kila wartości w itemach zmieniałem. Po zmianie wsystko działało, a po chwili przestało działać w konsoli żaden błąd nie wyskakuje.

    {
      "Rolls": {
        "gracz": {
          "name": "<color=#FF0000>gracz</color>",
          "description": "<color=#FF33FF>Raz na 3h!:</color>",
          "max": 999,
          "cooldown": 7200.0,
          "authlevel": 0,
          "hide": false,
          "permission": null,
          "items": [
            {
              "itemid": 2,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 7,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 34,
              "amount": 20,
              "chance": 5
            },
            {
              "itemid": 21,
              "amount": 255,
              "chance": 5
            },
            {
              "itemid": 42,
              "amount": 255,
              "chance": 5
            },
            {
              "itemid": 47,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 68,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 72,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 87,
              "amount": 50,
              "chance": 5
            },
            {
              "itemid": 88,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 91,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 127,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 135,
              "amount": 35,
              "chance": 5
            },
            {
              "itemid": 147,
              "amount": 255,
              "chance": 5
            },
            {
              "itemid": 155,
              "amount": 50,
              "chance": 5
            },
            {
              "itemid": 173,
              "amount": 1,
              "chance": 2
            },
            {
              "itemid": 220,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 226,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 231,
              "amount": 1,
              "chance": 2
            },
            {
              "itemid": 144,
              "amount": 1,
              "chance": 1
            },
            {
              "itemid": 275,
              "amount": 5,
              "chance": 5
            },
            {
              "itemid": 286,
              "amount": 1,
              "chance": 5
            }
          ],
          "stats": [],
          "spawns": [],
          "replacements": []
        },
        "vip": {
          "name": "<color=#FF0000>vip</color>",
          "description": "<color=#FF33FF>Raz na 3h!:</color>",
          "max": 999,
          "cooldown": 7200.0,
          "authlevel": 0,
          "hide": false,
          "permission": "vip",
          "items": [
            {
              "itemid": 2,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 7,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 19,
              "amount": 50,
              "chance": 5
            },
            {
              "itemid": 21,
              "amount": 255,
              "chance": 5
            },
            {
              "itemid": 42,
              "amount": 255,
              "chance": 5
            },
            {
              "itemid": 48,
              "amount": 30,
              "chance": 5
            },
            {
              "itemid": 51,
              "amount": 255,
              "chance": 5
            },
            {
              "itemid": 69,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 79,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 87,
              "amount": 100,
              "chance": 5
            },
            {
              "itemid": 137,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 129,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 155,
              "amount": 50,
              "chance": 5
            },
            {
              "itemid": 225,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 219,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 226,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 231,
              "amount": 1,
              "chance": 2
            },
            {
              "itemid": 273,
              "amount": 3,
              "chance": 5
            },
            {
              "itemid": 144,
              "amount": 1,
              "chance": 1
            },
            {
              "itemid": 282,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 307,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 303,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 286,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 278,
              "amount": 120,
              "chance": 5
            },
            {
              "itemid": 93,
              "amount": 1,
              "chance": 5
            }
          ],
          "stats": [],
          "spawns": [],
          "replacements": []
        },
        "svip": {
          "name": "<color=#FF0000>svip</color>",
          "description": "<color=#FF33FF>Raz na 3h!:</color>",
          "max": 999,
          "cooldown": 7200.0,
          "authlevel": 0,
          "hide": false,
          "permission": "svip",
          "items": [
            {
              "itemid": 22,
              "amount": 255,
              "chance": 5
            },
            {
              "itemid": 19,
              "amount": 255,
              "chance": 5
            },
            {
              "itemid": 23,
              "amount": 100,
              "chance": 5
            },
            {
              "itemid": 20,
              "amount": 255,
              "chance": 5
            },
            {
              "itemid": 51,
              "amount": 255,
              "chance": 5
            },
            {
              "itemid": 81,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 98,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 103,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 130,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 127,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 226,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 225,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 276,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 312,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 293,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 314,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 191,
              "amount": 30,
              "chance": 5
            },
            {
              "itemid": 219+,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 146,
              "amount": 1,
              "chance": 5
            },
            {
              "itemid": 144,
              "amount": 1,
              "chance": 1
            },
            {
              "itemid": 231,
              "amount": 1,
              "chance": 2
            }
          ],
          "stats": [],
          "spawns": [],
          "replacements": []
        }
      }
    }
    
  • Globalny moderator

    @halwiej problem występuje tutaj
    "name": "<color=#FF0000>gracz</color>",
    rolli nie da się zrobić tak jak kitów w kolor usuń ten kolor i wszystko powinno działać
    Jeśli to jest config który ci wysłałem to musi działać bo sam go używałem 🙂


  • @Kub41Tap usunąłem kolorki i nadal nie działa, zmieniałem jeszcze niektóre przedmioty ale to chyba nie jest powodem tego błędu?

  • Globalny moderator

    @halwiej może to powodować błąd jak coś gdzieś źle wpisałeś użyj jeszcze raz tego configu co ci dałem tylko nic nie zmieniaj i zobacz


  • @Kub41Tap teraz działa, czyli pewnie źle coś wpisałem, dzięki za pomoc 😀

  • Globalny moderator

    @halwiej na przyszłość nie rób rolli w kolor 😉
    Zamykam temat dodaje taq rozwiązane

  • Administrator

    Z tego co widzę to w konfiguracji była literówka. w linii 361 był +, następnym razem po edycji sprawdź konfigurację, chociaż by w edytorze który podświetla składnie json.

    Zrzut ekranu z 2018-11-29 16-30-20.png

  • uModundefined uMod locked this topic on

Sugerowane tematy