View Single Post
Old 09-27-2009, 09:00 AM   #1
T3RMINUS
User
 
Join Date: May 2009
Posts: 79

T3RMINUS has little to show at this moment (4)

Default Jasshelper changing my code?

The compiler is doing something very weird. My code that i typed in looks like this:
Collapse JASS:
function Stop takes nothing returns nothing
    call PauseUnit(GetEnumUnit(), true)
endfunction

function Trig_MazeInit_Actions takes nothing returns nothing
 local integer i
 local group g
    loop
        exitwhen i == bj_MAX_PLAYERS
        set g = GetUnitsOfPlayerAll(ConvertedPlayer(i))
        call ForGroup(g, Stop)
        set i = i+1
    endloop
endfunction

//===========================================================================
function InitTrig_MazeInit takes nothing returns nothing
    set gg_trg_MazeInit = CreateTrigger(  )
    call TriggerRegisterVariableEvent(gg_trg_MazeInit, "levelCount", EQUAL, 25)
    call TriggerAddAction( gg_trg_MazeInit, function Trig_MazeInit_Actions )
endfunction

But on the window that comes up it looks like this:
Collapse JASS:
function Stop takes nothing returns nothing
    call PauseUnit(GetEnumUnit() , true)
endfunction

function Trig_MazeInit_Actions takes nothing returns nothing
 local integer i
 local group g
    loop
        exitwhen i == bj_MAX_PLAYERS
        set g = GetUnitsOfPlayerAll(ConvertedPlayer(i))
        call ForGroup(g , (1))
        set i = i + 1
    endloop
endfunction

//===========================================================================
function InitTrig_MazeInit takes nothing returns nothing
    set gg_trg_MazeInit = CreateTrigger()
    call TriggerRegisterVariableEvent(gg_trg_MazeInit , "levelCount" , EQUAL , 25)
    call TriggerAddAction(gg_trg_MazeInit , function Trig_MazeInit_Actions)
endfunction
__________________
Quote:
Originally Posted by amhir123 from warcraft3.filefront.com
i want to download dota-allstar game
orly?
T3RMINUS is offline   Reply With Quote
Sponsored Links - Login to hide this ad!