Почему скрипт не работает?

TheBrox

Известный
Автор темы
973
202
вот почему не работает?
 

Вложения

  • test.lua
    410 байт · Просмотры: 8
Решение

так будет робить?
кста табуляцию лень делать сам сделаешь
Lua:
require "lib.moonloader"
local keys = require "vkeys"
function main()
while not isSampAvailable()
do wait(100) end
sampAddChatMessage('Тестик', 0xFF4500)
while true do
wait(0)
 if isKeyDown(VK_O)
 and isKeyJustPressed(VK_P)
 then
 sampSendChat('/anim 5')
 end
 if isKeyJustPressed(VK_M)
 then
 sampSendChat("/style")
 end
end
end

SomaGnoma

Известный
429
147

так будет робить?
кста табуляцию лень делать сам сделаешь
Lua:
require "lib.moonloader"
local keys = require "vkeys"
function main()
while not isSampAvailable()
do wait(100) end
sampAddChatMessage('Тестик', 0xFF4500)
while true do
wait(0)
 if isKeyDown(VK_O)
 and isKeyJustPressed(VK_P)
 then
 sampSendChat('/anim 5')
 end
 if isKeyJustPressed(VK_M)
 then
 sampSendChat("/style")
 end
end
end