Moderator
M
Moderator
12th Dec 2015
IcemanBo: Too long as NeedsFix. Rejected.
19:32, 27th Sep 2012
Magtheridon96: SimError is not a proper function name because it is "owned" by Vexorian's SimError library :/
Change it to PI_SimError.
And instead of setting a string variable to the string you want to display, you can make the function take a string argument.
You can even make it take an item argument too.
It helps shorten the code a bit and doesn't conflict with other major systems
IcemanBo: Too long as NeedsFix. Rejected.
19:32, 27th Sep 2012
Magtheridon96: SimError is not a proper function name because it is "owned" by Vexorian's SimError library :/
Change it to PI_SimError.
And instead of setting a string variable to the string you want to display, you can make the function take a string argument.
JASS:
function PI_SimError takes string s returns nothing
// use s as the string you want to display.
endfunction
You can even make it take an item argument too.
JASS:
function PI_SimError takes string s, item i returns nothing
// use s as the string you want to display
// use i as the item you're using
endfunction
It helps shorten the code a bit and doesn't conflict with other major systems