K
kingofdeth
Guest
when my map is loading it crashes and displays
I have this jass trigger. Whenever i turn that trigger off it works. There is nothing wrong with it. I was just experiencing so i know i could do this without jass.
pleez help.
This application has encountered a critical error:
FATAL ERROR!
Program: C:\PROGRAM FILES\WARCRAFT III\WAR3.EXE
Exception: 0xC0000005 (ACCESS_VIOLATION) at 017F:6F684D61
The instruction at '0x6F684D61' referenced memory at '0xFFFFFFFF'.
The memory could not be 'read'.
I have this jass trigger. Whenever i turn that trigger off it works. There is nothing wrong with it. I was just experiencing so i know i could do this without jass.
Code:
function Buttonclickedfire takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_Dialog_Button_Fire )
endfunction
function Buttonclickedmagma takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_Dialog_Button_Magma )
endfunction
function CreatUnit takes nothing returns nothing
if ( Buttonclickedfire () ) then
call CreateNUnitsAtLoc( 1, 'H001', GetTriggerPlayer(), GetPlayerStartLocationLoc(GetTriggerPlayer()), bj_UNIT_FACING )
else
if ( Buttonclickedmagma () ) then
call CreateNUnitsAtLoc( 1, 'H002', GetTriggerPlayer(), GetPlayerStartLocationLoc(GetTriggerPlayer()), bj_UNIT_FACING )
else
call DoNothing ()
endif
endif
endfunction
//===========================================================================
function InitTrig_Fire_elements takes nothing returns nothing
set gg_trg_Fire_elements = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Fire_elements, udg_Pick_hero_Fire )
call TriggerAddAction( gg_trg_Fire_elements, function CreateUnit )
endfunction
pleez help.


