Help fixing JASS for 1.24b/c

Status
Not open for further replies.

cenarius

New Member
Reaction score
0
I updated jasscraft for 1.24b, but syntax check doesn't report any errors.
I have no idea what to fix to make the map compatible. :<

I am attaching it inside a txt because it's too long for the post.


If someone can fix it...<3
 

Troll-Brain

You can change this now in User CP.
Reaction score
85
JASS:
function GU takes integer Gv returns group
local group g=CreateGroup()
call GroupEnumUnitsOfType(g,UnitId2String(Gv),null)
set gU=g
set g=null
return gU
endfunction


gU is an handle.

JassHelper doesn't give an error (assuming you talked about that and not jasscraft), but the map is disabled since it's a kind of return bug, which is supposed to be forbidden with the new patch, that's not totally true though, check here for more infos :
http://www.thehelper.net/forums/showthread.php?t=143486

You typecast an handle to a group.

Just return g.
I suppose you do that to avoid a "leak" , but since you return it there is no problem.

JASS:
function GU takes integer Gv returns group
local group g=CreateGroup()
call GroupEnumUnitsOfType(g,UnitId2String(Gv),null)
return g
endfunction


Oh, and also you might want to know this bug :
http://www.thehelper.net/forums/showthread.php?t=131844

EDIT :
It's not the only function like that in your script.
 

Romek

Super Moderator
Reaction score
963
This is clearly a script you haven't made yourself, and it's likely you got it in a way that isn't supported here.

Closed.
 
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top