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

What am i doing wrong? Error with a comma in a local string.

Asked by 6 years ago
local Months = ("January","Febuary","March","April","May","June","July","August","September","October","November","December")

the error-- ServerScriptService.DateTime:15: ')' expected near ','

2
use brackets {} instead of parenthesis () TheLionLiar 39 — 6y
0
Ciertamente usa brackets {} ya que es un arreglo happy_player2652 0 — 6y

2 answers

Log in to vote
1
Answered by
Wiscript 622 Moderation Voter
6 years ago

You should be creating a table. A table is created using "{}" and not "()".

Here's how the code should be written:

local months = {"January","Febuary","March","April","May","June","July","August","September","October","November","December"}
Ad
Log in to vote
1
Answered by
OldBo5 30
6 years ago
Edited 6 years ago

local Months = {"January","February ","March","April","May","June","July","August","September","October","November","December"}

0
You mis-spelled February and it's not (), it's {}. OldBo5 30 — 6y

Answer this question