Yoko

All sides of Injection
It is currently 2026-03-12 20:18:00

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Problems with serials
PostPosted: 2004-10-12 18:07:11 
Offline

Joined: 2004-05-03 17:30:45
Posts: 32
Location: OR
There are problems with objects serials.

Var obj=0x01513515 DOESN'T WORK
Var obj="0x01513515" WORKS

Now if i read from a file the objects serials, i can't decide which type is what i read (string, int), so i would need some kind of cast from string (or whatever it is) to serial..

For example i read from a file a serial and put in the variable obj.

if I see var(obj) it says 0
If i see str(obj) it says 0
If i see obj it says the correct serial, but i can't use it in functions like getgraphic and similars.

Anyone can help?

_________________
OR


Top
   
 Post subject:
PostPosted: 2004-10-12 18:52:45 
Offline

Joined: 2004-09-03 15:33:24
Posts: 8
in a script i have i read from a file serial numbers. In the file i have the serial numbers like:

Quote:
0x40043333
0x4002FE4E


In the script i use:

Quote:
Animal=safe call f.ReadString()


Then if i use the var i use:

Quote:
UO.WaitTargetObject(Animal)


Btw, sorry my bad english :)


Top
   
 Post subject:
PostPosted: 2004-10-12 19:22:04 
Offline

Joined: 2004-05-03 17:30:45
Posts: 32
Location: OR
ok i'm sorry there was an error in my script. I didn't know that the readline function puts a char at the end of the line (eof, return?). That was the problem.

_________________
OR


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 2 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