I'm not so good at jass, altho when i see code i can see what it does. (logics ftw) My friend sent me a map and told me to add some stuff he wanted. The triggers are made in GUI, but converted to jass to save space. Anyway, I use NewGenWE, and on one map i got an error from jasshelper:
Line 1324: Function refeclared: InitGlobals
The InitGlobals trigger i found was on line 308, and that's the one i want. The otherone has some stuff missing, and some stuff wrong (as far as i can se). I need to delete one of them, but i don't know how to find the one i want to delete. And maybe, the one i think is the correct one might not be the one i should use.
Here are the triggers:
The one jasshelper found on line 1324:
the one i found on 308:
Also, please ignore the name of the variables xD
I didn't name them and i won't do so ether...
Line 1324: Function refeclared: InitGlobals
The InitGlobals trigger i found was on line 308, and that's the one i want. The otherone has some stuff missing, and some stuff wrong (as far as i can se). I need to delete one of them, but i don't know how to find the one i want to delete. And maybe, the one i think is the correct one might not be the one i should use.
Here are the triggers:
The one jasshelper found on line 1324:
JASS:
function InitGlobals takes nothing returns nothing
local integer i = 0
set udg_currentlevel = 0
set udg_wavetimer = CreateTimer()
set udg_creepdead = 0
set udg_currentlevel_num = 0
set i = 0
loop
exitwhen (i > 8)
set udg_Kills[i] = 0
set i = i + 1
endloop
set udg_creep = 0
set udg_CurrentPlayer = 0
set i = 0
loop
exitwhen (i > 8)
set udg_Player[i] = 0
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 2)
set udg_Playerranking[i] = 0
set i = i + 1
endloop
set udg_EndingTimer = CreateTimer()
set i = 0
loop
exitwhen (i > 5)
set udg_CheatHeroStart[i] = false
set i = i + 1
endloop
endfunction
the one i found on 308:
JASS:
function InitGlobals takes nothing returns nothing
local integer i = 0
set udg_currentlevel = 0
set udg_wavetimer = CreateTimer()
set udg_creepdead = 0
set udg_currentlevel_num = 0
set i = 0
loop
exitwhen (i > 8)
set udg_Kills[i] = 0
set i = i + 1
endloop
set udg_creep = 0
set udg_CurrentPlayer = 0
set i = 0
loop
exitwhen (i > 8)
set udg_Player[i] = 0
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 2)
set udg_Playerranking[i] = 0
set i = i + 1
endloop
set udg_EndingTimer = CreateTimer()
set i = 0
loop
exitwhen (i > 5)
set udg_CheatHeroStart[i] = false
set i = i + 1
endloop
endfunction
Also, please ignore the name of the variables xD
I didn't name them and i won't do so ether...