Yoko

All sides of Injection
It is currently 2024-03-29 12:56:58

All times are UTC+02:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Runtime error
PostPosted: 2013-04-17 22:59:34 
Offline
User avatar

Joined: 2012-12-26 11:37:25
Posts: 30
Location: Киев
Не понимаю... что-то сломалось:)
Указывает на ошибку в 14-й строке
Подскажите пожалуйста.
Code:
sub xpeHb()
   var t,l
   t=400
   wait(t)
   dim xpeHb[6]
   ### Гребаный мусор ###
   xpeHb[1] = 0x100D  ## - Sheaf Of Hay 1
   xpeHb[2] = 0x100C  ## - Sheaf Of Hay 2
   xpeHb[3] = 0x0F36  ## - Sheaf Of Hay 3
   xpeHb[4] = 0x0EC6  ## - Dress Form
   xpeHb[5] = 0x09AA  ## - Wooden Box \
   xpeHb[6] = 0x0E7D  ## - Wooden Box /
   for l=1 to 6
      uo.findtype(xpeHb[l],'-1','ground')
      if uo.findcount() then
         uo.print('Обложили, сволочи! Собираем хлам...')
         uo.grab(-1,'finditem')
         uo.print('Найден предмет: '+str(uo.findcount()))
         wait(t)
      end if
   next
end sub


Last edited by Envy on 2013-04-18 15:04:28, edited 1 time in total.

Top
   
 Post subject: Re: Runtime error
PostPosted: 2013-04-18 05:40:31 
Offline

Joined: 2011-06-11 19:54:23
Posts: 820
Code:
end subb

b лишняя?


Top
   
 Post subject: Re: Runtime error
PostPosted: 2013-04-18 15:05:51 
Offline
User avatar

Joined: 2012-12-26 11:37:25
Posts: 30
Location: Киев
Juicy Fruit wrote:
Code:
end subb

b лишняя?

Нет, дело не в этом. Это при копировании скрипта сюда опечатался.


Top
   
 Post subject: Re: Runtime error
PostPosted: 2013-04-18 15:21:39 
Offline

Joined: 2011-06-11 19:54:23
Posts: 820
А индексы массива не с нуля должны начинаться ли?
Попробуй с нуля начать нумерацию и крутить цикл с 0 до 5


Top
   
 Post subject: Re: Runtime error
PostPosted: 2013-04-18 15:38:34 
Offline
User avatar

Joined: 2012-12-26 11:37:25
Posts: 30
Location: Киев
Code:
sub xpeHb()
   var t,l
   t=400
   wait(t)
   dim xpeHb[6]
   ### Гребаный мусор ###
   xpeHb[0] = 0x100D  ## - Sheaf Of Hay 1
   xpeHb[1] = 0x100C  ## - Sheaf Of Hay 2
   xpeHb[2] = 0x0F36  ## - Sheaf Of Hay 3
   xpeHb[3] = 0x0EC6  ## - Dress Form
   xpeHb[4] = 0x09AA  ## - Wooden Box \
   xpeHb[5] = 0x0E7D  ## - Wooden Box /
   for l=0 to 5
      uo.findtype(xpeHb[l],'-1','ground')
      if uo.findcount() then
         uo.print('Обложили, сволочи! Собираем хлам...')
         uo.grab(-1,'finditem')
         uo.print('Найден предмет: '+str(uo.findcount()))
         wait(t)
      end if
   next
end sub

Тоже самое(
Code:
Line 14: Runtime error


Top
   
 Post subject: Re: Runtime error
PostPosted: 2013-04-18 19:25:08 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Code:
   xpeHb[0] = '0x100D'  ## - Sheaf Of Hay 1
   xpeHb[1] = '0x100C'  ## - Sheaf Of Hay 2
   xpeHb[2] = '0x0F36'  ## - Sheaf Of Hay 3
   xpeHb[3] = '0x0EC6'  ## - Dress Form
   xpeHb[4] = '0x09AA'  ## - Wooden Box \
   xpeHb[5] = '0x0E7D'  ## - Wooden Box /
   for l=0 to 5
      uo.findtype(xpeHb[l],-1,'ground')


_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
 Post subject: Re: Runtime error
PostPosted: 2013-04-18 19:39:39 
Offline
User avatar

Joined: 2012-12-26 11:37:25
Posts: 30
Location: Киев
Code:
sub xpeHb()
   var t,l
   t=400
   wait(t)
   dim xpeHb[6]
   ### Гребаный мусор ###
   xpeHb[0] = '0x100D'  ## - Sheaf Of Hay 1
   xpeHb[1] = '0x100C'  ## - Sheaf Of Hay 2
   xpeHb[2] = '0x0F36'  ## - Sheaf Of Hay 3
   xpeHb[3] = '0x0EC6'  ## - Dress Form
   xpeHb[4] = '0x09AA'  ## - Wooden Box \
   xpeHb[5] = '0x0E7D'  ## - Wooden Box /
   for l=0 to 5
      uo.findtype(xpeHb[l],-1,'ground')
      if uo.findcount() then
         uo.print('Обложили, сволочи! Собираем хлам...')
         uo.grab(-1,'finditem')
         uo.print('Найден предмет: '+str(uo.findcount()))
         wait(t)
      end if
   next
end sub


Та же ошибка, в том же месте(


Top
   
 Post subject: Re: Runtime error
PostPosted: 2013-04-18 20:19:26 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Коменты убери (удали) - все заработает.

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
 Post subject: Re: Runtime error
PostPosted: 2013-04-18 21:12:12 
Offline
User avatar

Joined: 2012-12-26 11:37:25
Posts: 30
Location: Киев
Спасибо. Действительно работает)
И подумать не мог, что это из=за комментов..


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 9 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited