- Версия MoonLoader
- .026-beta
В скрипте кривой код "меню ареста", помогите исправить пожалуйста.
Полный код скрипта не помещается, если нужно могу скинуть его файлом.
Полный код скрипта не помещается, если нужно могу скинуть его файлом.
Код:
------------------------------------------------------------------------------Меню розыска-------------------------------------------------------------------------------
--[[function SUS()
sampShowDialog(1999, "{0633E5}Меню розыска", "{FFFFFF}Введите ID цели", "Выбрать", "Отмена", 1)
lua_thread.create(function()
wait(100)
stopThread = false
repeat
wait(0)
local result, button, list, input = sampHasDialogRespond(1999)
if result then
if button == 1 then
if sampIsPlayerConnected(input) then
SUSDial(input)
end
end
end
until not sampIsDialogActive() or stopThread
end)
end
function SUSDial(suid)
stopThread = true
var_17_0 = {}
var_17_0[0] = su.a0
var_17_0[1] = su.a1
var_17_0[2] = su.a2
var_17_0[3] = su.a3
var_17_0[4] = su.a4
var_17_0[5] = su.a5
var_17_0[6] = su.a6
var_17_0[7] = su.a7
var_17_0[8] = su.a8
var_17_0[9] = su.a9
var_17_0[10] = su.a10
var_17_0[11] = su.a11
var_17_0[12] = su.a12
var_17_0[13] = su.a13
var_17_0[14] = su.a14
var_17_0[15] = su.a15
var_17_0[16] = su.a16
var_17_0[17] = su.a17
var_17_0[18] = su.a18
var_17_0[19] = su.a19
var_17_0[20] = su.a20
var_17_0[21] = su.a21
var_17_0[22] = su.a22
var_17_0[23] = su.a23
var_17_0[24] = su.a24
var_17_0[25] = su.a25
var_17_0[26] = su.a26
var_17_0[27] = su.a27
var_17_0[28] = su.a28
var_17_0[29] = su.a29
var_17_0[30] = su.a30
var_17_0[31] = su.a31
var_17_0[32] = su.a32
var_17_0[33] = su.a33
var_17_0[34] = su.a34
var_17_0[35] = su.a35
var_17_0[36] = su.a36
var_17_0[37] = su.a37
var_17_0[38] = su.a38
var_17_0[39] = su.a39
var_17_0[40] = su.a40
var_17_0[41] = su.a41
var_17_0[42] = su.a42
var_17_0[43] = su.a43
var_17_0[44] = su.a44
var_17_0[45] = su.a45
var_17_0[46] = su.a46
var_17_0[47] = su.a47
var_17_0[48] = su.a48
var_17_0[49] = su.a49
vAa = var_17_0
var_17_0 = {}
var_17_0[0] = su.b0
var_17_0[1] = su.b1
var_17_0[2] = su.b2
var_17_0[3] = su.b3
var_17_0[4] = su.b4
var_17_0[5] = su.b5
var_17_0[6] = su.b6
var_17_0[7] = su.b7
var_17_0[8] = su.b8
var_17_0[9] = su.b9
var_17_0[10] = su.b10
var_17_0[11] = su.b11
var_17_0[12] = su.b12
var_17_0[13] = su.b13
var_17_0[14] = su.b14
var_17_0[15] = su.b15
var_17_0[16] = su.b16
var_17_0[17] = su.b17
var_17_0[18] = su.b18
var_17_0[19] = su.b19
var_17_0[20] = su.b20
var_17_0[21] = su.b21
var_17_0[22] = su.b22
var_17_0[23] = su.b23
var_17_0[24] = su.b24
var_17_0[25] = su.b25
var_17_0[26] = su.b26
var_17_0[27] = su.b27
var_17_0[28] = su.b28
var_17_0[29] = su.b29
var_17_0[30] = su.b30
var_17_0[31] = su.b31
var_17_0[32] = su.b32
var_17_0[33] = su.b33
var_17_0[34] = su.b34
var_17_0[35] = su.b35
var_17_0[36] = su.b36
var_17_0[37] = su.b37
var_17_0[38] = su.b38
var_17_0[39] = su.b39
var_17_0[40] = su.b40
var_17_0[41] = su.b41
var_17_0[42] = su.b42
var_17_0[43] = su.b43
var_17_0[44] = su.b44
var_17_0[45] = su.b45
var_17_0[46] = su.b46
var_17_0[47] = su.b47
var_17_0[48] = su.b48
var_17_0[49] = su.b49
vAb = var_17_0
var_17_0 = {}
var_17_0[0] = su.c0
var_17_0[1] = su.c1
var_17_0[2] = su.c2
var_17_0[3] = su.c3
var_17_0[4] = su.c4
var_17_0[5] = su.c5
var_17_0[6] = su.c6
var_17_0[7] = su.c7
var_17_0[8] = su.c8
var_17_0[9] = su.c9
var_17_0[10] = su.c10
var_17_0[11] = su.c11
var_17_0[12] = su.c12
var_17_0[13] = su.c13
var_17_0[14] = su.c14
var_17_0[15] = su.c15
var_17_0[16] = su.c16
var_17_0[17] = su.c17
var_17_0[18] = su.c18
var_17_0[19] = su.c19
var_17_0[20] = su.c20
var_17_0[21] = su.c21
var_17_0[22] = su.c22
var_17_0[23] = su.c23
var_17_0[24] = su.c24
var_17_0[25] = su.c25
var_17_0[26] = su.c26
var_17_0[27] = su.c27
var_17_0[28] = su.c28
var_17_0[29] = su.c29
var_17_0[30] = su.c30
var_17_0[31] = su.c31
var_17_0[32] = su.c32
var_17_0[33] = su.c33
var_17_0[34] = su.c34
var_17_0[35] = su.c35
var_17_0[36] = su.c36
var_17_0[37] = su.c37
var_17_0[38] = su.c38
var_17_0[39] = su.c39
var_17_0[40] = su.c40
var_17_0[41] = su.c41
var_17_0[42] = su.c42
var_17_0[43] = su.c43
var_17_0[44] = su.c44
var_17_0[45] = su.c45
var_17_0[46] = su.c46
var_17_0[47] = su.c47
var_17_0[48] = su.c48
var_17_0[49] = su.c49
vAc = var_17_0
var_17_0 = {}
var_17_0[0] = su.d0
var_17_0[1] = su.d1
var_17_0[2] = su.d2
var_17_0[3] = su.d3
var_17_0[4] = su.d4
var_17_0[5] = su.d5
var_17_0[6] = su.d6
var_17_0[7] = su.d7
var_17_0[8] = su.d8
var_17_0[9] = su.d9
var_17_0[10] = su.d10
var_17_0[11] = su.d11
var_17_0[12] = su.d12
var_17_0[13] = su.d13
var_17_0[14] = su.d14
var_17_0[15] = su.d15
var_17_0[16] = su.d16
var_17_0[17] = su.d17
var_17_0[18] = su.d18
var_17_0[19] = su.d19
var_17_0[20] = su.d20
var_17_0[21] = su.d21
var_17_0[22] = su.d22
var_17_0[23] = su.d23
var_17_0[24] = su.d24
var_17_0[25] = su.d25
var_17_0[26] = su.d26
var_17_0[27] = su.d27
var_17_0[28] = su.d28
var_17_0[29] = su.d29
var_17_0[30] = su.d30
var_17_0[31] = su.d31
var_17_0[32] = su.d32
var_17_0[33] = su.d33
var_17_0[34] = su.d34
var_17_0[35] = su.d35
var_17_0[36] = su.d36
var_17_0[37] = su.d37
var_17_0[38] = su.d38
var_17_0[39] = su.d39
var_17_0[40] = su.d40
var_17_0[41] = su.d41
var_17_0[42] = su.d42
var_17_0[43] = su.d43
var_17_0[44] = su.d44
var_17_0[45] = su.d45
var_17_0[46] = su.d46
var_17_0[47] = su.d47
var_17_0[48] = su.d48
var_17_0[49] = su.d49
vAd = var_17_0
if vAd[0] == "" then vAd[0] = "{FFFFFF}" end
if vAb[0] == "" then vAb[0] = "-" end
flist = vAd[0] .. vAa[0] .. "\t" .. vAb[0] .. "\t" .. vAc[0] .. "\n"
for i=1,#vAa do
if vAd[i] == "" then vAd[i] = "{FFFFFF}" end
if vAb[i] == "" then vAb[i] = "-" end
flist = flist .. vAd[i] .. vAa[i] .. "\t" .. vAb[i] .. "\t" .. vAc[i] .. "\n"
end
nick = sampGetPlayerNickname(suid):gsub('_', ' ')
sampShowDialog(1999, "{0633E5}Меню розыска. Имя нарушителя: {FFFFFF}" .. nick, "Название\tСтатья\tРозыск\n" .. flist, "Выбрать", "Отмена", 5)
lua_thread.create(function()
wait(100)
stopThread = false
repeat
wait(0)
local result, button, list, input = sampHasDialogRespond(1999)
if result then
if button == 1 then
if vAb[list] == "-" then
sampSendChat("/su " .. suid .. " " .. vAc[list] .. " " .. vAa[list])
else
sampSendChat("/su " .. suid .. " " .. vAc[list] .. " " .. vAa[list] .. " " .. vAb[list])
end
end
end
until not sampIsDialogActive() or stopThread
end)
end]]