- 3
- 0
- Версия SA-MP
-
- Любая
Объясните почему код не работает? Что исправить нужно?
function main()
repeat wait(5000) until isSampAvailable()
while true do
wait(0)
if isKeyJustPressed(18) and isKeyJustPressed(49) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/lock 1")
end
if isKeyJustPressed(18) and isKeyJustPressed(52) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/lock 4")
end
if isKeyJustPressed(18) and isKeyJustPressed(50) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/rem")
end
if isKeyJustPressed(18) and isKeyJustPressed(51) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/key")
end
end
end
function main()
repeat wait(5000) until isSampAvailable()
while true do
wait(0)
if isKeyJustPressed(18) and isKeyJustPressed(49) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/lock 1")
end
if isKeyJustPressed(18) and isKeyJustPressed(52) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/lock 4")
end
if isKeyJustPressed(18) and isKeyJustPressed(50) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/rem")
end
if isKeyJustPressed(18) and isKeyJustPressed(51) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/key")
end
end
end