#1
Variable setting JASS(Help!!!!)
I tried to set a variable in JASS that I couldn't normally, and I ended up with an error. Here is the 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 )
endfunctionNow here is the error:
Line 3623: Type mismatch in assignment
Every time I try to save it, it gives me this error, and shows this code. Help?
Also, the variable type is a player.