Hi all I'm having a little problem with the save/load code of acehart...
I want to make a different collour for the lower case alphabetical characters
so this is what I've come up with:
the problem is, is that I get 3 compile errors:
Expected expression @:
Expected 'endif" @:
Expected 'endif" @:
+rep if you can help me solve this problem...
I want to make a different collour for the lower case alphabetical characters
so this is what I've come up with:
JASS:
function SaveLoad_Color takes string s returns string
local integer i = StringLength(s)
local string c
local string r = ""
loop
set i = i - 1
set c = SubString(s,i,i + 1)
if c == "0" or c == "1" or c == "2" or c == "3" or c == "4" or c == "5" or c == "6" or c == "7" or c == "8" or c == "9" then
set r = "|cffffcc00" + c + "|r" + r
elseif c == "-" then
set r = "|cffdddddd-|r" + r
elseif c == "a" or c == "b" or c == "c" or c == "d" or c == "e" or c == "f" or c == "g" or c == "h" or c == "i" or c == "j" or c == "k" or c == "l" or c == "m" or c == "n" or c == "o" or c == "p" or c == "q" or c == "r" c == "s" or c == "t" or c == "u" or c == "v" or c == "w" or c == "x" or c == "y" or c == "z" then
set r = "|c0000ff80" + c + "|r" + r
else
set r = c + r
endif
exitwhen i <= 0
endloop
return r
endfunction
the problem is, is that I get 3 compile errors:
Expected expression @:
JASS:
elseif c == "a" or c == "b" or c == "c" or c == "d" or c == "e" or c == "f" or c == "g" or c == "h" or c == "i" or c == "j" or c == "k" or c == "l" or c == "m" or c == "n" or c == "o" or c == "p" or c == "q" or c == "r" c == "s" or c == "t" or c == "u" or c == "v" or c == "w" or c == "x" or c == "y" or c == "z" then
Expected 'endif" @:
JASS:
else
Expected 'endif" @:
JASS:
endif
+rep if you can help me solve this problem...