HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Bug with step 2 in your syntax checker.

05-11-2007, 08:18 PM#1
zergleb
Now this is the structs part of the syntax checker, but keep in mind this map has no structs, I don't think it's been edited since structs came out.

But this is the error.


Identifier Redeclared. "Commander"

Collapse JASS:
function TributeGold takes player Commander, player Comp, integer res_amount returns nothing
//code
endfunction

then it says previously declared here.

Collapse JASS:
function Commander takes nothing returns nothing
//code
endfunction

Now these functions actually have code in them instead of being empty, but I doubt that has anything to do with the problem. I assume this will seem pretty obvious to you what the problem is when you take a look at it.

And oh yeah, It might matter that it's using WEU(because someone else halfway made it), and the newest JASS newgen pack.
05-11-2007, 08:40 PM#2
Vexorian
Stop giving the same name to things. This syntax error is actually expected to happen in that case. If it is impossible to change the names, disable jasshelper while saving this specific map?
05-12-2007, 08:00 AM#3
zergleb
Oh ok, Sorry to report it as a bug, I've already renamed it. Just couldn't think at the time why it would limit that, but I guess it has to do with being able to run the .execute() and .evaluate() Sorry I wasn't thinking deeply enough. thanks.
05-12-2007, 01:17 PM#4
Vexorian
I'll try getting that fixed, but in the current state there's ambiguity there.