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:

1        DS:SetAsync(plyr.UserId{
2bans=0,
3endmonth=1,
4endday=1,
5endyear=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.

1DS:SetAsync(plyr.UserId, {
2    bans = 0,
3    endmonth = 1,
4    endday = 1,
5    endyear = 1
6})
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