- 2,358
- 1,107
есть скриптик простой, но он тупит и в диалог не вписывает "200"
как сделать?
Вот сам скрипт
как сделать?
Вот сам скрипт
1:
sampev = require 'lib.samp.events'
function main()
jopa = false
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand("pt", po)
wait(-1)
end
function po(arg)
jopa = true
end
function sampev.onShowDialog(id, style, caption)
if jopa and id == 216 then
sampCloseCurrentDialogWithButton(1)
return false
end
if jopa and id == 217 then
sampSendDialogResponse(217, 1, 3, input)
end
if jopa and id == 221 then
sampSendDialogResponse(221, listitem, "200")
end
end