Yoko
http://forum.yoko.com.ua/

Variable already defined
http://forum.yoko.com.ua/viewtopic.php?f=20&t=17561
Page 1 of 1

Author:  dubd [ 2015-03-14 23:43:34 ]
Post subject:  Variable already defined

народ добрый чего-то выдает ошибку.

Variable already defined - mx.

Code:
sub main() 
var mx, my, mz, i, j, jor, ser, noto
mx = UO.GetX("self")
my = UO.GetY("self")
mz = UO.GetZ("self")
UO.DeleteJournal()
for i = mx-4 to mx+4
for j = my -4 to my+4
tohide()
UO.Print("Now Mining In: "+str(mx-i)+" "+str(my-j))   
while (not uo.injournal("no ore")) and (not uo.injournal("in rock"))  and (not uo.injournal("You have no line")) and (not uo.injournal("trhtrhr")) and (not uo.injournal ("That is too far"))
uo.deletejournal()
if uo.waiting() then
uo.canceltarget()
endif
  UO.Waittargettile("1341", str(i), str(j), str(mz))
UO.UseType(pic)
while (not uo.injournal("fail")) and (not uo.injournal("put")) and (not uo.injournal("You have no line")) and (not uo.injournal("elemental")) and (not uo.injournal("no ore")) and (not uo.injournal("in rock")) and (not uo.injournal ("That is too far"))
    wait(500)
if uo.injournal("heavy") or uo.dead() then
endif

Author:  Mirage [ 2015-03-15 00:31:54 ]
Post subject:  Re: Variable already defined

Variable already defined - mx.
Переменная - mx - уже объявлена.
Var mx где то уже есть.

Author:  Juicy Fruit [ 2015-03-15 08:26:54 ]
Post subject:  Re: Variable already defined

Дай все до "end sub"

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/