- Joined
- Aug 16, 2007
- Messages
- 884
Hello, I'm currently creating a function that should store variables into a DPS system... But I've encountered a weird error, I don't know why it's appearing...
This is the function:
and this is how I call it:
but this will give me this error:
but when I remove "Abilities\Weapons\PoisonSting\PoisonStingTarget.mdl" it won't give me any error... Seriosly, whats wrong?
This is the function:
JASS:
function SetDPS takes unit uc, unit ud, real dmg, real dur, string effectpos, string speffect returns nothing
endfunction
and this is how I call it:
-
Cast
-
Events
-
Conditions
-
Actions
-
Custom script: call SetDPS(udg_DT_Caster[udg_DT_Index[3]], udg_u[0], udg_DT_DPS[udg_DT_Index[3]], 2.0, "overhead", "Abilities\Weapons\PoisonSting\PoisonStingTarget.mdl")
-
-
but this will give me this error:
- Expected expression
- Expected a function name
but when I remove "Abilities\Weapons\PoisonSting\PoisonStingTarget.mdl" it won't give me any error... Seriosly, whats wrong?