- Joined
- Jun 30, 2008
- Messages
- 580
I have these two functions:
and
These two functions are in separate libraries. When I save though it says "Undeclared function RegisterVars" But when I call RegisterVars in another library then it works. Any Ideas why?
UPDATE: Interesting... I fixed it. But all I did was change the name of the library that help FuncInit. The original name of the library was; CCS. Now I changed it to CreationSystem and it works perfectly fine.
Is there something wrong with CCS?
JASS:
function RegisterVars takes integer i returns nothing
local CharDat dat = CharDat.create()
set dat.Vitality = 1.0
set dat.Dexterity = 1.0
set dat.Focus = 1.0
set dat.Attack = 0.0
set dat.Defense = 0.0
set dat.Health = 50.0
set dat.Mana = 10.0
set dat.Mregen = 0.0
set dat.Hregen = 0.0
set dat.AttackSpeed = 0.0
set dat.CritChance = 0.0
set dat.EvaChance = 0.0
set dat.BlockChance = 0.0
set dat.StunChance = 0.0
set dat.DropChance = 0.0
call SaveInteger(CD, i, 1, dat)
endfunction
and
JASS:
function FuncInit takes nothing returns nothing
local destructable skin
local integer m = 1
local integer PID = GetPlayerId(GetTriggerPlayer())
local CharDat dat
call RegisterVars(PID)
set dat = LoadInteger(CD, PID, 1)
endfunction
These two functions are in separate libraries. When I save though it says "Undeclared function RegisterVars" But when I call RegisterVars in another library then it works. Any Ideas why?
UPDATE: Interesting... I fixed it. But all I did was change the name of the library that help FuncInit. The original name of the library was; CCS. Now I changed it to CreationSystem and it works perfectly fine.
Is there something wrong with CCS?