Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
local sampev = require('lib.samp.events')
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
if title:find("Пароль от сервера") then
sampCloseCurrentDialogWithButton(0)
end
end
local sampev = require('lib.samp.events')
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(0) end
wait(-1)
end
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
if title == "Пароль от сервера" then
sampCloseCurrentDialogWithButton(0)
else
return
end
end
main здесь совсем не нужен, к чему тут else, return ?
Lua:
local sampev = require('lib.samp.events')
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
if title == "Пароль от сервера" then
sampCloseCurrentDialogWithButton(0)
end
end
local sampev = require('lib.samp.events')
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
if title:find("Пароль от сервера") then
sampCloseCurrentDialogWithButton(0)
end
end