Закрытие диалога.

Firus20016

Участник
Автор темы
148
15
Версия MoonLoader
.025-beta
Ребят, подскажите как закрыть этот гребанный диалог. Уже 3 час гуглю.
41266
 

Firus20016

Участник
Автор темы
148
15
Lua:
function main()
  if not isSampfuncsLoaded() or not isSampLoaded() then return end
  while not isSampAvailable() do wait(100) end
  while true do
  wait(1)
     sampSendChat("/house")
sampSendDialogResponse(174, 1, 1, -1)
sampSendDialogResponse(2431, 1, 0, -1)
sampSendDialogResponse(185, 1, 6, -1)
wait(50)
  sampCloseCurrentDialogWithButton(0)
  wait(3600000)
     end
 end
Lua:
sampCloseCurrentDialogWithButton(0)
Неа, не робит
код:
 

Joni Scripts

Известный
535
374
Lua:
function main()
  if not isSampfuncsLoaded() or not isSampLoaded() then return end
  while not isSampAvailable() do wait(100) end
  while true do
  wait(1)
     sampSendChat("/house")
sampSendDialogResponse(174, 1, 1, -1)
sampSendDialogResponse(2431, 1, 0, -1)
sampSendDialogResponse(185, 1, 6, -1)
wait(50)
  sampCloseCurrentDialogWithButton(0)
  wait(3600000)
     end
end

Неа, не робит
код:
Moonloader.log прикрепи, мб скрипт крашит
 

Firus20016

Участник
Автор темы
148
15
Moonloader.log прикрепи, мб скрипт крашит
[20:11:47.503776] (system) ARZ_Helper.lua: Script terminated. (2DFEA394)
[20:11:47.503776] (debug) Remove thread 31E67525 from SCM-thread queue
[20:11:47.504776] (system) AutoEatInHome: Script terminated. (2DFEB424)
[20:11:47.505777] (system) AutoInPut: Script terminated. (2DFEA88C)
[20:11:47.505777] (system) AutoPassInBank: Script terminated. (2DFEA6E4)
[20:11:47.505777] (system) AutoReconnect: Script terminated. (2DFEAF2C)
[20:11:47.506777] (system) AutoRoulete: Script terminated. (2DFEABDC)
[20:11:47.506777] (system) hungry or satiety.lua: Script terminated. (2DFEB91C)
[20:11:47.506777] (debug) Remove thread 31E54E4D from SCM-thread queue
[20:11:47.507777] (system) MVDHelper Era: Script terminated. (2DFEB0D4)
[20:11:47.507777] (debug) Remove thread 31E56A0D from SCM-thread queue
[20:11:47.513779] (system) ReklamaInVR: Script terminated. (2DFEBAC4)
[20:11:47.513779] (debug) Remove thread 31E55D55 from SCM-thread queue
[20:11:47.513779] (system) ML-ReloadAll: Script terminated. (16ACB03C)
[20:11:47.514779] (system) ScriptManager: Script terminated. (16ACBF24)
[20:11:47.514779] (debug) Remove thread 31E552ED from SCM-thread queue
[20:11:47.515779] (system) SF Integration: Script terminated. (16ACA7F4)
[20:11:47.515779] (debug) Remove thread 31E55415 from SCM-thread queue
[20:11:47.515779] (system) textdraw.lua: Script terminated. (16ACB38C)
[20:11:47.515779] (debug) Remove thread 31E55C2D from SCM-thread queue
[20:11:47.516789] (system) Loading script 'C:\Games\gta 1300\moonloader\ARZ_Helper.lua'...
[20:11:47.516789] (debug) New script: 2DFEB424
[20:11:47.524781] (system) ARZ_Helper.lua: Loaded successfully.
[20:11:47.524781] (system) Loading script 'C:\Games\gta 1300\moonloader\AutoEat in house.lua'...
[20:11:47.525781] (debug) New script: 2DFEA1EC
[20:11:47.526791] (system) AutoEatInHome: Loaded successfully.
[20:11:47.526791] (system) Loading script 'C:\Games\gta 1300\moonloader\AutoInPut.lua'...
[20:11:47.526791] (debug) New script: 2DFEA88C
[20:11:47.532783] (system) AutoInPut: Loaded successfully.
[20:11:47.532783] (system) Loading script 'C:\Games\gta 1300\moonloader\AutoPassInBank.lua'...
[20:11:47.532783] (debug) New script: 2DFEBE14
[20:11:47.537793] (system) AutoPassInBank: Loaded successfully.
[20:11:47.537793] (system) Loading script 'C:\Games\gta 1300\moonloader\autoreconnect.lua'...
[20:11:47.537793] (debug) New script: 2DFEA394
[20:11:47.538784] (system) AutoReconnect: Loaded successfully.
[20:11:47.538784] (system) Loading script 'C:\Games\gta 1300\moonloader\AutoRoulete.lua'...
[20:11:47.538784] (debug) New script: 2DFEB774
[20:11:47.540785] (system) AutoRoulete: Loaded successfully.
[20:11:47.540785] (system) Loading script 'C:\Games\gta 1300\moonloader\hungry or satiety.lua'...
[20:11:47.540785] (debug) New script: 2DFEB91C
[20:11:47.543794] (system) hungry or satiety.lua: Loaded successfully.
[20:11:47.543794] (system) Loading script 'C:\Games\gta 1300\moonloader\MVDhelp.luac'...
[20:11:47.543794] (debug) New script: 2DFEA6E4
[20:11:47.552796] (script) MVDHelper Era: MVDHelper successfully launched. Version 3.1.3
[20:11:47.552796] (script) MVDHelper Era: login 20A45DA6
[20:11:47.553796] (system) MVDHelper Era: Loaded successfully.
[20:11:47.553796] (system) Loading script 'C:\Games\gta 1300\moonloader\Reklama in vr.lua'...
[20:11:47.553796] (debug) New script: 2DFEABDC
[20:11:47.554796] (system) ReklamaInVR: Loaded successfully.
[20:11:47.555797] (system) Loading script 'C:\Games\gta 1300\moonloader\reload_all.lua'...
[20:11:47.555797] (debug) New script: 2DFEAF2C
[20:11:47.556788] (system) ML-ReloadAll: Loaded successfully.
[20:11:47.556788] (system) Loading script 'C:\Games\gta 1300\moonloader\scriptManager.luac'...
[20:11:47.556788] (debug) New script: 2DFEB0D4
[20:11:47.558797] (system) ScriptManager: Loaded successfully.
[20:11:47.558797] (system) Loading script 'C:\Games\gta 1300\moonloader\SF Integration.lua'...
[20:11:47.558797] (debug) New script: 2DFEBAC4
[20:11:47.560789] (system) SF Integration: Loaded successfully.
[20:11:47.560789] (system) Loading script 'C:\Games\gta 1300\moonloader\textdraw.lua'...
[20:11:47.560789] (debug) New script: 17C37024
[20:11:47.561790] (system) textdraw.lua: Loaded successfully.
[20:11:47.563798] (debug) Add thread 31E558B5 to SCM-thread queue
[20:11:47.566799] (script) MVDHelper Era: Проверка целосности файлов
[20:11:47.581794] (script) MVDHelper Era: Проверка целосности файлов - Порядок.
[20:11:47.596797] (debug) Add thread 31E567BD to SCM-thread queue
[20:11:47.624804] (debug) Add thread 31E551C5 to SCM-thread queue
[20:11:47.640816] (debug) Add thread 31E55D55 to SCM-thread queue
[20:11:47.641808] (debug) Add thread 31E56B35 to SCM-thread queue
[20:11:47.656811] (debug) Add thread 31E552ED to SCM-thread queue
[20:11:47.697829] (script) MVDHelper Era: require lanes done
[20:11:47.700821] (script) MVDHelper Era: Проверка обновлений
[20:11:48.195497] (script) MVDHelper Era: Подключение к базе выполнено. Ваш индификатор в MVDHelper: 111162
[20:11:48.197497] (script) MVDHelper Era: Обновлений нет
[20:11:48.926669] (debug) Add thread 31E67C15 to SCM-thread queue
[20:11:50.234965] (script) MVDHelper Era: dopSu - download (Arizona Role Play | Red-Rock)
[20:11:50.289977] (script) MVDHelper Era: [ News LS ] Режиссер Leo_Banderole[119]:{FFFFFF} Критерии: иметь пакет документов,паспорт и мед.карту,быть в опрятном виде
[20:11:50.737078] (script) MVDHelper Era: dopSu - OK
[20:11:51.237731] (script) MVDHelper Era: dopTicket - download (Arizona Role Play | Red-Rock)
[20:11:51.739310] (script) MVDHelper Era: dopTicket - OK
 

trefa

3d print
Всефорумный модератор
2,111
1,275
Lua:
local sampev = require 'lib.samp.events'

function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
    if dialogId == 174 then
      sampSendDialogResponse(174, 1, 1, -1)
      return false
    end
    if dialogId == 2431 then
      sampSendDialogResponse(2431, 1, 0, -1)
      return false
    end
    if dialogId == 185 then
      sampSendDialogResponse(185, 1, 6, -1)
      return false
    end
end
 

Firus20016

Участник
Автор темы
148
15
Lua:
local sampev = require 'lib.samp.events'

function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
    if dialogId == 174 then
      sampSendDialogResponse(174, 1, 1, -1)
      return false
    end
    if dialogId == 2431 then
      sampSendDialogResponse(2431, 1, 0, -1)
      return false
    end
    if dialogId == 185 then
      sampSendDialogResponse(185, 1, 6, -1)
      return false
    end
end
не совсем верно понял как робит код. Мне нужно что бы еще команда /house прописывалась и вызывала диалог с ид 174
 

Marv22

Участник
38
1
Lua:
local sampev = require 'lib.samp.events'

function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
    if dialogId == 174 then
      sampSendDialogResponse(174, 1, 1, -1)
      return false
    end
    if dialogId == 2431 then
      sampSendDialogResponse(2431, 1, 0, -1)
      return false
    end
    if dialogId == 185 then
      sampSendDialogResponse(185, 1, 6, -1)
      return false
    end
end
Что делает return false ?