Skip to content
User Avatar
#3286
Auto-translated
elseif can only be used within an if block. Count the number of if-then, elseif-then blocks – each should have only 1 end. At the end of the function block, there should also be an end; (eof) means 'end of function', so one end is missing. Look, the top elseif is terminated by the nearest end, the next end (second from the top) then belongs either to some if block outside this elseif, or it is the end of the function. Then try adding this end before the line that triggers the new day.

In principle, to avoid such confusion, you should, for example, put 2 spaces each time an if block starts. And in the content to be executed by the if, in addition to end, elseif, and then – also 2 spaces. Then the ends corresponding to the ifs will be on the same vertical line. This way, you can quickly determine where an end is missing.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________