| 01-24-2007, 12:52 AM | #1 | |
I'm getting an "Invalid number of arguments" compile error from this line: JASS:call SetAbilityDataReal(s,"speed",0,400) //400 speed for all levels I realize that it says "Real", and I have input an integer value for the second line, but it does not work even with a real value. Additionally, the line call SetAbilityDataReal(s,"speed" ,0,200 ) //200 of speed for all levels does not yield a compile error. Furthermore, if I C 'n P the line call SetAbilityDataReal(s,"speed" ,0,200 ) //200 of speed for all levels, which compiles fine, over where the line call SetAbilityDataReal(s,"speed",0,400) //400 speed for all levels without changing anything... I end up with a compile error I'm baffled.
Edit Rant: WTF? I just removed that line entirely, and the line that was moved up into it's place is now giving me compile errors! And I DIDN'T EVEN TOUCH IT! Ack! I then tried to re-insert the line I omitted using "//" and putting a blank line in there instead but it still said the new line (call SetAbilityDataReal(s,"collision",0,25) //25 collision) has an "invalid number of arguments! Now I'm really pissed. |
| 01-24-2007, 01:06 AM | #2 |
Stop, stop using World Editor's normal compiler if you plan to ever modiffy Jass Code, it gives the wrong error line, the actual error is in call SetAbilityDataInt(s,"turninc",3 )
you miss the level arg |
| 01-24-2007, 01:54 AM | #3 |
Why thank you, Vex. I don't see why I overlooked that. |
