코드의 문제점을 파악하는 데 도움을주십시오. 내가 그것을 실행하는거야 때 함수lua, corona sdk에서 함수를 정의 할 때 오류가 발생했습니다.
local function goOnLesson()
if date.hour==1 then
index=1
local subj=schToday[index]
local text = display.newRetinaText("А сейчас у тебя: "..subj, 0, 0, native.systemFont, 70)
text:setTextColor(128,64,0)
text:setReferencePoint(display.CenterReferencePoint)
localGroup:insert(text)
end
end
를 정의하고하고, 모든 것이 괜찮습니다.
나는 코드를 개편하고 더 이상local function goOnLesson()
index=1
local subj=schToday[index]
local text = display.newRetinaText("А сейчас у тебя: "..subj, 0, 0, native.systemFont, 70)
text:setTextColor(128,64,0)
text:setReferencePoint(display.CenterReferencePoint)
localGroup:insert(text)
end
난 그냥 지금은 작동하지 않는 블록을 최종 경우 만 제거하면 블록이 필요하지 않습니다. 도와주세요 :)
* * "작동하지 않음"? –
당신이 얻은 오류를 게시하십시오. – SatheeshJM
질문에 간략히 설명하십시오. – Malarkodi