Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

where the problem?

Ask for help
Post Reply
-k-
Neophyte
Neophyte
Posts: 41
Joined: 23.01.2012 0:22

where the problem?

Post by -k- »

Code: Select all

Procedure Walk(x,y : integer);
begin
if MoveXY(x, y, false, 0, True) = True then begin
end
else begin
if MoveXY(x, y-1, false, 0, True) = True then begin
end
else begin
if MoveXY(x-1, y, false, 0, True) = True then begin
end
else begin
if MoveXY(x, y+1, false, 0, True) = True then begin
end
else begin
MoveXY(x+1, y, false, 0, True);
end;
end;
end;
end;
end;
Out Of Range at 1.263
-k-
Neophyte
Neophyte
Posts: 41
Joined: 23.01.2012 0:22

Re: where the problem?

Post by -k- »

hehe, i search the problem, the procedure is correct, thanks
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: where the problem?

Post by Vizit0r »

WAD?

http://stealth.od.ua/Doc:Api/MoveXY - that's what you need!
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Post Reply