Sui-cookie
You can change this now in User CP.
- Reaction score
- 49
i have a very limited knowledge of jass so i cant really tell what is wrong with this:
anyone can help me out? D:
btw, this isnt a syntax problem... its just that it doesnt save abilities and im trying to get it to.
JASS:
function SaveLoad_Ability2Integer takes integer a returns integer
local integer i = 0
if udg_SaveLoad_Initialized == false then
set udg_SaveLoad_Initialized = true
call SaveLoad_InitialSetup()
endif
loop
set i = i + 1
exitwhen i > udg_SaveLoad_Abilities_LastIndex
if udg_SaveLoad_Abilities<i> == a then
return i
endif
endloop
return SaveLoad_Id2CId(a)
endfunction
function SaveLoad_Integer2Ability takes integer i returns integer
if udg_SaveLoad_Initialized == false then
set udg_SaveLoad_Initialized = true
call SaveLoad_InitialSetup()
endif
if i <= udg_SaveLoad_Abilities_LastIndex then
return udg_SaveLoad_Abilities<i>
endif
return SaveLoad_CId2Id(i)
endfunction</i></i>
anyone can help me out? D:
btw, this isnt a syntax problem... its just that it doesnt save abilities and im trying to get it to.