logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Object's ID

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules
View previous topic :: View next topic  
Author Message
Ephasme



Joined: 24 Aug 2010
Posts: 7

PostPosted: Tue Aug 24, 2010 5:04    Post subject: Object's ID Reply with quote

Hello everybody,

For beginning, thanks for all the stuff you've done on NWN. I come here to ask a question, I've looked up in the sources of the plug-in nwnx_hashset and I found this :
Code:

unsigned long gameObjectID = *(unsigned long*)(gameObject+4);

Is this ID unique ? I mean, can I use it as primary key in a SQL Database to identify, for example, characters ?

Thanks for you advices.
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Tue Aug 24, 2010 7:25    Post subject: Reply with quote

No, it won't be unique between instances of nwserver.
_________________
Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/

<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.

<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group