fix send dialog

master
rubin 3 years ago
parent ac1cd0bde0
commit ca2c093615
  1. 4
      SRP-Number.lua

@ -144,8 +144,8 @@ function sampev.onServerMessage(color, message)
repeat wait(10) until sampIsDialogActive() and string.find(sampGetDialogCaption(), "Ìàãàçèí") repeat wait(10) until sampIsDialogActive() and string.find(sampGetDialogCaption(), "Ìàãàçèí")
wait(mode[2]["run"]) wait(mode[2]["run"])
if mode[1]["run"] then if mode[1]["run"] then
sampSetCurrentDialogListItem(2) local dialogId = sampGetCurrentDialogId()
sampCloseCurrentDialogWithButton(1) sampSendDialogResponse(dialogId,1,2,"")
end end
end) end)
end end

Loading…
Cancel
Save