Yoko

All sides of Injection
It is currently 2025-10-26 04:13:11

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: open door
PostPosted: 2008-08-27 15:04:03 
Offline

Joined: 2006-05-04 18:40:42
Posts: 104
Code:
sub open_door()
   var i
   dim asd[8]
      asd[0] = "0x068D"
      asd[1] = "0x068F"
      asd[2] = "0x06A5"
      asd[3] = "0x06A7"
      asd[4] = "0x06AD"
      asd[5] = "0x06AF"
      asd[6] = "0x0824"
      asd[7] = "0x0826"
         
   #for i = 0 to 3
      if uo.getDistance(asd[i]) then
         uo.usefromground(asd[i])
         return
      end if
   #next
end sub


line 307: Bad operations for this type of variable - ASD
the line 307 is this
Code:
if uo.getDistance(asd[i]) then


Top
   
 Post subject:
PostPosted: 2008-08-27 15:07:50 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Each element of asd array - graphic type (or something other, not the item ID or object link), not the object.

U must first find object and then get distance to found object..

Turn on u logic, man...

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2008-08-27 19:45:18 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Destruction wrote:
Turn on u logic, man...


You think this is real? :twisted:


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 4 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