скрипт не работает

egorglebov

Участник
Автор темы
50
4
Версия MoonLoader
.026-beta
Помогите, скрипт не работает, вот код:
LUA:
local etopzd = getGameDirectory()..'\\clown.txt'

function main()
    repeat wait(0) until isSampAvailable()
        if doesFileExist(etopzd) then
            sampAddChatMessage('Spalo9', -1)
            io.open(etozpd, "r+")
        end
        if not doesFileExist(etopzd) then
            sampAddChatMessage('воаывопыдопывавыфафыаыфва', -1)
            while true do
                wait(0)
            end
        end
    end
 

qdIbp

Автор темы
Проверенный
1,387
1,146
Lua:
local etopzd = getGameDirectory()..'\\clown.txt'

function main()
    repeat wait(0) until isSampAvailable()
        if doesFileExist(etopzd) then
            sampAddChatMessage('Spalo9', -1)
            io.open(etozpd, "r+")
        end
        if not doesFileExist(etopzd) then
            sampAddChatMessage('воаывопыдопывавыфафыаыфва', -1)
        end
    while true do wait(0)
            
    end
end