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 
 
SQLLocationToString and SQLStringToLocation

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
Dracos



Joined: 16 Oct 2006
Posts: 21

PostPosted: Tue Nov 21, 2006 14:55    Post subject: SQLLocationToString and SQLStringToLocation Reply with quote

It seems that I can only store SQLLocationToString(GetLocation(player)) in the DB.

If I try something like this

AssignCommand(oPC, ActionJumpToLocation(SQLStringToLocation(old_loc)))

it does nothing. If I try (for debug purpose)


SendMessageToPC(oPC, "your stored location is "+SQLLocationToString (GetLocation(oPC)));

doesn't rcall anything.
Back to top
View user's profile Send private message MSN Messenger
amphiprion



Joined: 07 Nov 2006
Posts: 44
Location: Toulouse (France)

PostPosted: Tue Nov 21, 2006 15:36    Post subject: Reply with quote

Did yo define a TAG to your Area ?

If not, the fonction will not work.
Back to top
View user's profile Send private message
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Tue Nov 21, 2006 19:48    Post subject: Reply with quote

Good point amphiron -- all new areas in NWN2 default to having no tag.
Back to top
View user's profile Send private message
Dracos



Joined: 16 Oct 2006
Posts: 21

PostPosted: Wed Nov 22, 2006 12:42    Post subject: Reply with quote

ohmg! No tag!

Ok, now everything' s functioning perfectly. Thx a lot Amphiprion! Smile
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development 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