Как сделать биндер

SampSeller

Участник
Автор темы
35
3
Форматирование кода
Версия MoonLoader
Другое
Нужен тип биндер на часы в /do
у меня такой код



Lua:
function main()
    while not isSampAvailable() do wait(0) end
    while true do
        wait(0)
        if wasKeyPressed(82) then
            sampSendChat('/do на часах хуй' , int hours, int mins = getTimeOfDay())
        end
    end
end
 
Последнее редактирование модератором:

SampSeller

Участник
Автор темы
35
3
Lua:
if testCheat("msk") and not sampIsCursorActive() then
                sampSendChat("/me взглянул на часы с гравировкой •Шаринган от Наруто• ")
                sampSendChat("/time")
                wait(1200)
                sampSendChat ("/do На часах  "..os.date('%H:%M:%S'))
            end
сам функцию напишешь
а где бинд?
 

SampSeller

Участник
Автор темы
35
3
Lua:
function main()
    while not isSampAvailable() do wait(0) end
    while true do
    
    if testCheat("msk") and not sampIsCursorActive() then
                sampSendChat("/me взглянул на часы с гравировкой •Шаринган от Наруто• ")
                sampSendChat("/time")
                wait(1200)
                sampSendChat ("/do На часах  "..os.date('%H:%M:%S'))
            end
Да,если хочешь можешь изменить
 

backloop

Участник
152
14
Lua:
function main()
    while not isSampAvailable() do wait(0) end
    while true do
   
    if testCheat("msk") and not sampIsCursorActive() then
                sampSendChat("/me взглянул на часы с гравировкой •Шаринган от Наруто• ")
                sampSendChat("/time")
                wait(1200)
                sampSendChat ("/do На часах  "..os.date('%H:%M:%S'))
            end
Да так пробуй
 

SampSeller

Участник
Автор темы
35
3
[16:46:06.271361] (system) Loading script "C:\Users\User\Desktop\MORTY сборка low\moonloader\time.lua"... (id:13)
[16:46:06.271361] (error) time.lua: C:\Users\User\Desktop\MORTY сборка low\moonloader\time.lua:10: 'end' expected (to close 'while' at line 3) near '<eof>'
[16:46:06.271361] (error) time.lua: Script died due to an error. (id:13)

я добавил wait (0) после while 3 строки щяс чекну
Lua:
function main()
    while not isSampAvailable() do wait(0) end
    while true do
        wait(0)
        if testCheat("msk") and not sampIsCursorActive() then
                sampSendChat("/me взглянул на часы с гравировкой •Шаринган от Наруто• ")
                sampSendChat("/time")
                wait(1200)
                sampSendChat ("/do На часах  "..os.date('%H:%M:%S'))
            end
        end
    end
Зароботало спасибо за помощь
Ток почему то у меня не русские буквы , а эроглифы какие то
Все поменял кодировку заработало
 

backloop

Участник
152
14
[16:46:06.271361] (system) Loading script "C:\Users\User\Desktop\MORTY сборка low\moonloader\time.lua"... (id:13)
[16:46:06.271361] (error) time.lua: C:\Users\User\Desktop\MORTY сборка low\moonloader\time.lua:10: 'end' expected (to close 'while' at line 3) near '<eof>'
[16:46:06.271361] (error) time.lua: Script died due to an error. (id:13)

я добавил wait (0) после while 3 строки щяс чекну

Lua:
function main()
    while not isSampAvailable() do wait(0) end
    while true do
        wait(0)
        if testCheat("msk") and not sampIsCursorActive() then
                sampSendChat("/me взглянул на часы с гравировкой •Шаринган от Наруто• ")
                sampSendChat("/time")
                wait(1200)
                sampSendChat ("/do На часах  "..os.date('%H:%M:%S'))
            end
        end
    end
Зароботало спасибо за помощь
Ток почему то у меня не русские буквы , а эроглифы какие то
Все поменял кодировку заработало
кадировку смени на windows 1251