помогите сделать биндер на луа

NeOnik

Известный
Автор темы
50
3
Numpad1::
SendInput, {F6}/armour {Enter}
Return

Numpad0::
SendInput, {F6}/sdmg_dmg {Space}
Return

Numpad2::
SendInput, {F6}/sellgun 10 deagle 150 1 {Space}
Return

Numpad9::
SendInput, {F6}/capture {Enter}
Return
 

БеzликиЙ

Автор темы
Проверенный
1,117
686
Lua:
function main()
while not isSampAvailable() do wait(100) end
while true do
if not sampIsCursorActive
if wasKeyJustPressed(97) then sampSendChat("/armour") end
if wasKeyJustPressed(96) then
sampSetChatInputEnabled(true) 
sampSetChatInputText("/sdmg_dmg ")
end
if wasKeyJustPressed(98) then
sampSetChatInputEnabled(true)
sampSetChatInputText("/sellgun 10 deagle 150 1 ") 
end
if wasKeyJustPressed(105) then sampSendChat("/capture") end
end
wait(0)
end
 

NeOnik

Известный
Автор темы
50
3
Lua:
function main()
while not isSampAvailable() do wait(100) end
while true do
if not sampIsCursorActive
if wasKeyJustPressed(97) then sampSendChat("/armour") end
if wasKeyJustPressed(96) then
sampSetChatInputEnabled(true)
sampSetChatInputText("/sdmg_dmg ")
end
if wasKeyJustPressed(98) then
sampSetChatInputEnabled(true)
sampSetChatInputText("/sellgun 10 deagle 150 1 ")
end
if wasKeyJustPressed(105) then sampSendChat("/capture") end
end
wait(0)
end
можете в луа файле плесс
 

NeOnik

Известный
Автор темы
50
3
что то не работает

[20:31:53.942280] (system) Loading script 'D:\!ALIEN GTA 1337\moonloader\binder (1).lua'...
[20:31:53.942280] (debug) New script: 06059394
[20:31:53.943280] (error) binder (1).lua: D:\!ALIEN GTA 1337\moonloader\binder (1).lua:5: 'then' expected near 'if'
[20:31:53.943280] (error) binder (1).lua: Script died due to an error. (06059394)
 

hos1n

Участник
39
4
что то не работает


[20:31:53.942280] (system) Loading script 'D:\!ALIEN GTA 1337\moonloader\binder (1).lua'...
[20:31:53.942280] (debug) New script: 06059394
[20:31:53.943280] (error) binder (1).lua: D:\!ALIEN GTA 1337\moonloader\binder (1).lua:5: 'then' expected near 'if'
[20:31:53.943280] (error) binder (1).lua: Script died due to an error. (06059394)
Обновил файл, ошибка была допущена автором предыдущего ответа и по моей невнимательности. Извиняюсь.
 

NeOnik

Известный
Автор темы
50
3
Обновил файл, ошибка была допущена автором предыдущего ответа и по моей невнимательности. Извиняюсь.
[20:40:52.893106] (system) Loading script 'D:\!ALIEN GTA 1337\moonloader\binder (2).lua'...
[20:40:52.893106] (debug) New script: 06229024
[20:40:52.893106] (error) binder (2).lua: D:\!ALIEN GTA 1337\moonloader\binder (2).lua:17: 'end' expected (to close 'function' at line 1) near '<eof>'
[20:40:52.893106] (error) binder (2).lua: Script died due to an error. (06229024)
 

hos1n

Участник
39
4
[20:40:52.893106] (system) Loading script 'D:\!ALIEN GTA 1337\moonloader\binder (2).lua'...
[20:40:52.893106] (debug) New script: 06229024
[20:40:52.893106] (error) binder (2).lua: D:\!ALIEN GTA 1337\moonloader\binder (2).lua:17: 'end' expected (to close 'function' at line 1) near '<eof>'
[20:40:52.893106] (error) binder (2).lua: Script died due to an error. (06229024)
Поправил и проверил.
 

Вложения

  • binder.lua
    573 байт · Просмотры: 24