UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Bad syntax

broken avatar :(
Created 9 years ago
by Eggies
0 Members and 1 Guest are viewing this topic.
1,838 views
broken avatar :(
×
broken avatar :(
Location: usCalifornia
Date Registered: 6 August 2015
Last active: 2 years ago
Posts
145
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Hiya!
×
Eggies's Groups
Eggies's Contact & Social LinkstiyoushiXelasto
So I got the bad syntax error which means some script is wrong. I used developer 1 and found out that this line is the culprit:

update_leaderboards()level.victory_ending_enabled = true;

The surrounding file looks like this:



I changed this line while trying to make a buyable ending from a tutorial.

Is there a way to fix this? Do I delete it? Or is it one of those TINY mistakes in the script?  ???
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Code Snippet
Plaintext
update_leaderboards();
level.victory_ending_enabled = true;
Marked as best answer by Tiyoushi 9 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 3 months ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Code Snippet
Plaintext
update_leaderboards();
level.victory_ending_enabled = true;

Code Snippet
Plaintext
update_leaderboards()
{
level.victory_ending_enabled = true;

A semi-colon after the function name will cause a bad syntax, and "level.victory_ending_enabled = true;" needs to be after the {
Last Edit: September 13, 2015, 12:40:06 am by ProGamerzFTW
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Code Snippet
Plaintext
update_leaderboards()
{
level.victory_ending_enabled = true;

A semi-colon after the function name will cause a bad syntax, and "level.victory_ending_enabled = true;" needs to be after the {

no a semicolon in "defining" a function will throw an error

i assume his was "calling" the function, as i couldnt see why "update_leaderboard" would contain that code, thought more likely it is to "update the leaderboard" then define end-game as completed

I guessed tho, cant see the pic, as on my work pc
Last Edit: September 13, 2015, 01:30:45 am by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: usCalifornia
Date Registered: 6 August 2015
Last active: 2 years ago
Posts
145
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Hiya!
×
Eggies's Groups
Eggies's Contact & Social LinkstiyoushiXelasto
Thanks guys! it worked :)

 
Loading ...