Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Creating a dictionary table, getting "attempt to call an number value"?

Asked by 4 years ago

My code is:

                DS:SetAsync(plyr.UserId{
        bans=0,
        endmonth=1,
        endday=1,
        endyear=1})

This gives attempt to call a number value in the output. Can you not add numbers to dictionaries?? I have no idea why it's not letting me save a number.

1 answer

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

Hello. I think you just forgot a comma after plyr.UserId.

DS:SetAsync(plyr.UserId, {
    bans = 0,
    endmonth = 1,
    endday = 1,
    endyear = 1
})
0
Ahh, silly mistakes. Void_Frost 571 — 4y
0
And that's why you always format your code so it's easier to catch errors. youtubemasterWOW 2741 — 4y
Ad

Answer this question