Ошибки :
[14:36:50.855535] (error) BusinessChecker: ...NA GAMES\bin\Arizona\moonloader\bisCheckerLuaEdition.lua:18: attempt to concatenate global 'owner' (a nil value)
stack traceback:
...NA GAMES\bin\Arizona\moonloader\bisCheckerLuaEdition.lua: in function <...NA GAMES\bin\Arizona\moonloader\bisCheckerLuaEdition.lua: 1>
[14:36:50.855535] (error) BusinessChecker: Script died due to an error. (1508272C)
[14:36:50.855535] (error) BusinessChecker: ...NA GAMES\bin\Arizona\moonloader\bisCheckerLuaEdition.lua:18: attempt to concatenate global 'owner' (a nil value)
stack traceback:
...NA GAMES\bin\Arizona\moonloader\bisCheckerLuaEdition.lua: in function <...NA GAMES\bin\Arizona\moonloader\bisCheckerLuaEdition.lua: 1>
[14:36:50.855535] (error) BusinessChecker: Script died due to an error. (1508272C)
Вот сам код:
function business()
while true do
wait(300)
--sampAddChatMessage("Скрипт работает", -1)
for i = 0, 10000 do
if sampIs3dTextDefined(i) then
my_text, _, _, _, _, _, _, _, _ = sampGet3dTextInfoById(i)
if string.find(my_text, "Номер бизнеса", 1, true) and not string.find(my_text, "Бизнес продается", 1, true) then
if string.find(my_text, "BF9088", 1, true) then
--sampAddChatMessage("Бизнес с {BF9088} этим")
num, typeBus, owner, _ = string.match(my_text, "{BF9088}Номер бизнеса: {FFFFFF}(.+)\n{BF9088}Тип бизнеса: {FFFFFF}(.+)\n{BF9088}Владелец: {FFFFFF}(.+)\n{73B461}Крыша: {FFFFFF}(.+)")
else
--sampAddChatMessage("Бизнес с {73B461} этим")
num, typeBus, owner, _ = string.match(my_text, "{73B461}Номер бизнеса: {FFFFFF}(.+)\n{73B461}Тип бизнеса: {FFFFFF}(.+)\n{73B461}Владелец: {FFFFFF}(.+)\n{73B461}Крыша: {FFFFFF}(.+)")
end
isWritable = true
myStr = "Номер бизнеса: [" .. num .. "] | Тип бизнеса: " .. typeBus .. " | Владелец: " .. owner .. "\n"
for key, val in pairs(blacklistBis) do
if val == myStr then
isWritable = false
end
end
if isWritable then
table.insert(blacklistBis, myStr)
addChatMessage(myStr)
getTimeRemainedToSlet(owner)
bisTxtChecker(num, owner, typeBus)
end
end
end
end
end
end