Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
Since the boss said no problem, I edit the topic :D
Since the boss said no problem, I edit the topic :D
Since the boss said no problem, I edit the topic
Last edited by wokao98 on 29.11.2017 13:29, edited 1 time in total.
Re: report bug with v8.6.0
ofcourse.GetGumpInfo(GetGumpsCount-1, gumpInfo);
wait(WaitTime);
while gumpInfo.XmfHTMLGumpColor[2].Hue <> 16927 do begin
if Dead or not Connected then Exit;
NumGumpButton(GetGumpsCount-1,4);
CheckLag(60000);
wait(100);
GetGumpInfo(GetGumpsCount-1, gumpInfo);
wait(100);
end;
often get the out of range error
Because no any guarantee that gumpinfo will be always taken with XmfHTMLGumpColor array. You make no checks f.e. Length(XmfHTMLGumpColor) > 0, just directly taking array element value. If array empty = error.
It's your bug, not stealth.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Since the boss said no problem, I edit the topic :D
Since the boss said no problem, I edit the topic
Last edited by wokao98 on 29.11.2017 13:30, edited 1 time in total.
Re: report bug with v8.6.0
Line, where error raised, is
while gumpInfo.XmfHTMLGumpColor[2].Hue <> 16927 do
?
while gumpInfo.XmfHTMLGumpColor[2].Hue <> 16927 do
?
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".