1. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Can you tell me whats wrong with this script?

Discussion in 'Modder General Chat' started by Fuzzyliama, Dec 20, 2016.

  1. Fuzzyliama

    Fuzzyliama New Member

    command = "roll",
    description = "Roll A random number",
    delay = 1.5,
    syntax = "[number maximum]",
    onRun = function(client, arguments)
    Print(client, "roll", math.random(0, math.min(tonumber(arguments[1]) or 100, 100)))
  2. Pab14567

    Pab14567 Well-Known Member

    The p is capitalized when its not supposed to be.

    Casing matters
  3. NoOriginality

    NoOriginality Member

    You have an extra ) at the end of the code. You didn't open it with anything. Remove it.

Share This Page