- Joined
- Sep 5, 2019
- Messages
- 33
I just downloaded vJass tonight to fix another problem I had with jass, and it fixed that problem. However, now there is a compile error from a "Miscellaneous Utility Functions". I dont know how to edit or access these functions to fix this. I have disabled all my own triggers, and it still shows the error, so its some built in function I assume.
The exact function is GetFadeFromSeconds:
function GetFadeFromSeconds takes real seconds returns integer
if (seconds != 0) then
return 128 / seconds
else
return 10000
endif
endfunction
and the error is: Cannot convert returned value from real to integer
If I knew where these functions were, I could turn said value R2I, or even just disable the function (I dont believe I use it much). If I were to edit blizzard.j or common.j would that fix it? (also how exactly would I do that?) Or is the issue elsewhere? Thanks!
The exact function is GetFadeFromSeconds:
function GetFadeFromSeconds takes real seconds returns integer
if (seconds != 0) then
return 128 / seconds
else
return 10000
endif
endfunction
and the error is: Cannot convert returned value from real to integer
If I knew where these functions were, I could turn said value R2I, or even just disable the function (I dont believe I use it much). If I were to edit blizzard.j or common.j would that fix it? (also how exactly would I do that?) Or is the issue elsewhere? Thanks!