• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Help with code line

Status
Not open for further replies.
Level 1
Joined
Dec 1, 2007
Messages
2
Okay, I'm quite newb at jass. Let me get that out of the way.

Why does WorldEdit say I have an "invalid number of arguments" on this line:

JASS:
    set udg_scoreamount[id] = ( udg_scoreamount[id] + raiseamt )
 
Level 11
Joined
Feb 18, 2004
Messages
394
I vote we have a sticky that says:
Post ALL of your code, not just a line or two.
and harmfully flog anyone who ignores it. *Hint hint*

anyway, that line parses fine in JC. (with an ancient PJASS version, mind you) The error is likely elsewhere in your code.

Side note: why are you using parenthesis there?... really, why? there is no reason to. at all.
 
Level 5
Joined
Dec 17, 2007
Messages
145
When syntax checking, ALWAYS fix the FIRST problem WE hands you. Then repeat the process. WE gives shitloads of errors for a single problem sometimes.

And that line parses fine. Parenthesis are useless there, btw. Post the entire trigger this line is in, please.
 
Status
Not open for further replies.
Top