运行这个时提示attempt to call global 'isColor' (a nil value)错误
-- 主入口函数
function main()
if isColor(260,230,0xFFFFFF) then a=1
else a=0
end
if isColor(410,266,0xFFFFFF) then b=1
else b=0
end
ifisColor(387,414,0xFFFFFF) then c=1
else c=0
end
ifisColor(222,394,0xFFFFFF) then d=1
else d=0
end
print ('a+b+c+d=')
mSleep(5000)
end
求解决
-- 主入口函数
function main()
if isColor(260,230,0xFFFFFF) then a=1
else a=0
end
if isColor(410,266,0xFFFFFF) then b=1
else b=0
end
ifisColor(387,414,0xFFFFFF) then c=1
else c=0
end
ifisColor(222,394,0xFFFFFF) then d=1
else d=0
end
print ('a+b+c+d=')
mSleep(5000)
end
求解决









