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 Syntex

broken avatar :(
Created 12 years ago
by daedra descent
0 Members and 1 Guest are viewing this topic.
5,725 views
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
So yeah, i'm getting a bad Syntax for whatever reason. I don't see it, so maybe someone else can find it.

Code Snippet
Plaintext
 

    new_spawn_logic()
    {
            classtospawn = npcClassInit( classtospawn, weapon );
            spawnguy = weaponClassThink( class );
            switch( spawnguy )
                    {
                            case "attacker":
                                    spawner = getEntarray( "attacker_spawner", "targetname" );
                                    break;
     
                            case "defender":
                                    spawner = getEntarray( "defender_spawner", "targetname" );
                                    break;
     
                            case "kamikaze":
                                    spawner = getEntarray( "kamikaze_spawner", "targetname" );
                                    break;
     
                            case "sharpshooter":
                                    spawner = getEntarray( "sharpshooter_spawner", "targetname" );
                                    break;
                    }
                    spawner dospawn();
                    spawner thread spawnEvent( classToSpawn, guyWeapon );                         
                    spawner thread flyingBodies();
            }
    }
}

Last Edit: December 28, 2013, 04:17:44 am by daedra descent
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 3 years ago
Posts
5,544
Respect
6,646Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
The typo is not evident in the code block you provided. It's either one of your function calls or something you haven't shown in the snippet. Post the full developer 1 error and the relevant part of the script according to the error.
broken avatar :(
×
broken avatar :(
Location: tr
Date Registered: 1 March 2013
Last active: 3 days ago
Posts
817
Respect
Forum Rank
The Decider
Primary Group
2015 Contest Winner
My Groups
More
My Contact & Social Links
More
Personal Quote
Caw caw caw
×
johndoe's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Mapper Has released one or more maps to the UGX-Mods community.
2015 Contest Winner
johndoe's Contact & Social Links-johndoemyc153
there is an extra curly bracket in the code. remove one of them and see if it works.
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 3 years ago
Posts
5,544
Respect
6,646Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
there is an extra curly bracket in the code. remove one of them and see if it works.
I saw the code was indented for it so I ignored it, but yeah you're right since he's declaring a function it doesn't belong there. Should fix it.
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Console:


I have since removed the extra bracket, not that it fixs anything
Last Edit: December 28, 2013, 05:59:23 am by daedra descent
broken avatar :(
×
broken avatar :(
Location: tr
Date Registered: 1 March 2013
Last active: 3 days ago
Posts
817
Respect
Forum Rank
The Decider
Primary Group
2015 Contest Winner
My Groups
More
My Contact & Social Links
More
Personal Quote
Caw caw caw
×
johndoe's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Mapper Has released one or more maps to the UGX-Mods community.
2015 Contest Winner
johndoe's Contact & Social Links-johndoemyc153
Console:
(Image removed from quote.)

I have since removed the extra bracket, not that it fixs anything
i think you should let us see the entire file to find what's wrong. we can't magically guess what causes it since we're not psychic wizards.
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
i think you should let us see the entire file to find what's wrong. we can't magically guess what causes it since we're not psychic wizards.

Because I kind of wanted to keep this semi-secret and not paste the entire thing for all to see.

Also, you wouldn't make much sense of it because I haven't changed everything, so there might still be missing variables and such.
Last Edit: December 28, 2013, 07:23:34 am by daedra descent
broken avatar :(
×
broken avatar :(
Former UGX Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 7 years ago
Posts
1,932
Respect
Forum Rank
Zombie Destroyer
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Eh?
Signature

(Click to enter portfolio)
×
SajeOne's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Because I kind of wanted to keep this semi-secret and not paste the entire thing for all to see.

Also, you wouldn't make much sense of it because I haven't changed everything, so there might still be missing variables and such.
Anyone that can read it will not have a use for it. Anyone that wants it won't know how to use it, so I don't really see the downside of providing more info for assistance.
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
NVM i'm scrapping it.
Last Edit: December 28, 2013, 11:06:25 pm by daedra descent
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
I'd rather write up my own spawning script. Payload's spawning scripts are causing mindfucks.
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
I'd rather write up my own spawning script. Payload's spawning scripts are causing mindfucks.

It really isn't that bad once you sit there and read it about 3 times.
broken avatar :(
×
broken avatar :(
Constants and Variables
Location: us
Date Registered: 18 August 2013
Last active: 2 years ago
Posts
889
Respect
Forum Rank
The Decider
Primary Group
Box Mappers Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
The Worst Secret Agent Ever
Signature
×
MAK911's Groups
Box Mappers Elite
Box Mappers Elite
Banned Elite
Banned Elite
MAK911's Contact & Social Linksmkramrtmkramrt
Shouldn't it be 'getEntArray'? Don't know much about scripting, but I'm taking a stab at it.
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Shouldn't it be 'getEntArray'? Don't know much about scripting, but I'm taking a stab at it.

Not sure what you mean by this, all of the spawners are already arrays.

 
Loading ...