Здравствуйте. Не как не выходит запустить скрипт с начала или с определенного места. goto почему то выдает ошибку syntax error, хотя в коде уже есть другие goto внутри функций и они работают нормально. А restart_skript просто ни чего не делает.
Код
function CheckPlayerDie()
Adress = readmem (0x7BC4F04, "d") --Read the address of the beginning of the structure from the pointer
Adress = Adress + 0x0E --Get the address of the variable /*+14*/ bool InSafeZone;
InSafeZone = readmem (Adress , "w") --Write value from address to variable
log ("SafeZone:", InSafeZone)
if color(226, 554 ) ~= 451 or color(265, 556) ~= 828147 then
wait(10000)
end
if InSafeZone == 1 then
if Debug == 1 then
log("Player Die")
end
Start = 1
restart_script ("all")
goto nachalo
end
end
function SearchPlayer()
end
function SmokeTime()
end
function Main(CordX, CordY)
ReadCordinate()
CheckPlayerDie()
SearchPlayer()
SmokeTime()
end
::nachalo::
while true do
Main(100, 100)
end