- Joined
- May 23, 2005
- Messages
- 19
I tried to set a variable in JASS that I couldn't normally, and I ended up with an error. Here is the code:
Now here is the error:
Also, the variable type is a player.
Code:
function Trig_set_admin_Actions takes nothing returns nothing
set udg_Admin = "Eternal_Dread"
endfunction
//===========================================================================
function InitTrig_set_admin takes nothing returns nothing
set gg_trg_set_admin = CreateTrigger( )
call TriggerAddAction( gg_trg_set_admin, function Trig_set_admin_Actions )
endfunction
Every time I try to save it, it gives me this error, and shows this code. Help?Line 3623: Type mismatch in assignment
Also, the variable type is a player.