Yoko

All sides of Injection
It is currently 2026-03-12 18:41:01

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: ContainerOf
PostPosted: 2004-09-17 22:09:19 
Offline

Joined: 2004-05-03 17:30:45
Posts: 32
Location: OR
Anyone can tell me why this doesn't work?

if (UO.ContainerOf(obj)==0xFFFFFFFF) then
UO.Print("The Object is on earth")
end if

I absolutely can't know if an object is on the ground. I also tried =="0xFFFFFFFF" but nothing too.

_________________
OR


Top
   
 Post subject:
PostPosted: 2004-09-18 00:07:32 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
uo.print(UO.ContainerOf("self"))
look at output, check up completely incedence of chars, including case


Top
   
 Post subject:
PostPosted: 2004-09-18 01:58:32 
Offline

Joined: 2004-05-03 17:30:45
Posts: 32
Location: OR
Yes Yoko, there's something wrong, maybe with casting. However setting ==UO.ContainerOf("self") worked good for me. Thanks.

Note: if I put after the == the RESULT of ContainerOf("self") it doesn't work.

_________________
OR


Top
   
 Post subject:
PostPosted: 2004-09-18 22:02:43 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
it will work exactly as good if you will ATTENTIVELY rewrite the result
i'm quite sure in this


Top
   
 Post subject:
PostPosted: 2004-09-19 20:43:56 
Offline

Joined: 2004-05-03 17:30:45
Posts: 32
Location: OR
i did, it didn't :) however no problem :)

_________________
OR


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


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