wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
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!
Old 09-27-2009, 09:12 AM   #2
TriggerHappy
 
Join Date: Feb 2008
Posts: 405

Submissions (2)

TriggerHappy will become famous soon enough (43)TriggerHappy will become famous soon enough (43)

Default

call ForGroup(g, Stop)
->
call ForGroup(g, function Stop)

Last edited by TriggerHappy : 09-27-2009 at 09:13 AM.
TriggerHappy is offline   Reply With Quote
Old 09-27-2009, 10:15 AM   #3
DioD
obey
 
DioD's Avatar
 
Join Date: Feb 2006
Posts: 1,532

Submissions (4)

DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)

Send a message via ICQ to DioD
Default

this is crush prevention mechanism.
DioD is offline   Reply With Quote
Old 09-27-2009, 07:31 PM   #4
T3RMINUS
User
 
Join Date: May 2009
Posts: 79

T3RMINUS has little to show at this moment (4)

Default

I assume you mean crash?
__________________
Quote:
Originally Posted by amhir123 from warcraft3.filefront.com
i want to download dota-allstar game
orly?
T3RMINUS is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 02:05 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2018, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services