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 5 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 — 5y
0
Ciertamente usa brackets {} ya que es un arreglo happy_player2652 0 — 5y

2 answers

Log in to vote
1
Answered by
Wiscript 622 Moderation Voter
5 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
5 years ago
Edited 5 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 — 5y

Answer this question