Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Anyway, the errors are also quite useful. In this case, the error is pointing you to line 5. Check line 5. The error is also hinting towards "main" being declared for a second time there. So, you just need to see if it has been unnecessarily declared for a second time on line 5.
If that doesn't help, you'll need to share your code.
I also suggest checking this:
https://www.w3schools.com/js/js_errors.asp
You have a duplication of the function main at Line 5.
In the IDE in game if there's no ram count it means the script is in unusable state clicking on the little box will give you the line number where your syntax is incorrect or you've got incomplete statements.