- 16
- 4
- Версия MoonLoader
- .026-beta
если active2 = true вылазит ошибка:
[ML] (error) scriptname: cannot resume non-suspended coroutine
stack traceback:
[C]: in function 'sampGetPlayerNickname'
...\moonloader\script.lua:53: in function <E:\GAMES\GTA xxlhuff\moonloader\check TD id.lua:9>
[ML] (error) auto z: Script died due to an error. (131213D4)
строчка 53:
помогите с решением, спасибо
[ML] (error) scriptname: cannot resume non-suspended coroutine
stack traceback:
[C]: in function 'sampGetPlayerNickname'
...\moonloader\script.lua:53: in function <E:\GAMES\GTA xxlhuff\moonloader\check TD id.lua:9>
[ML] (error) auto z: Script died due to an error. (131213D4)
строчка 53:
Lua:
local suspects = sampGetPlayerNickname(suspectid)
Lua:
-- функция main
while true do
wait(0)
if active2 then
active = false
local x, y, z = getCharCoordinates(PLAYER_PED)
local anybody, suspecthandle = findAllRandomCharsInSphere(x, y, z, 25, true, false)
if anybody then
local _, suspectid = sampGetPlayerIdByCharHandle(suspecthandle)
local suspects = sampGetPlayerNickname(suspectid)
-- далее код
end
end
end
помогите с решением, спасибо
Последнее редактирование: