WolfieeifloW
WEHZ Helper
- Reaction score
- 372
EDIT: Nevermind, forgot to initialize the COLORS array :banghead: .
It always returns false.
Commented section left in to show what I'm trying to do (It's what I originally had) .
JASS:
private function CheckColor takes string Col returns boolean
local integer i = 0
local boolean cc = false
loop
exitwhen i == COLORSNUM
if (Col != COLORS<i>) then
set cc = false
else
return true
endif
set i = i + 1
endloop
return cc
//if (Col != "red" and Col != "gold" and Col != "cyan" and Col != "blue" and Col != "brown" and Col != "grey" and Col != "gray" and Col != "green" and Col != "orange" and Col != "pink") then
//return false
//else
//return true
//endif
endfunction</i>
It always returns false.
Commented section left in to show what I'm trying to do (It's what I originally had) .