Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
What exactly is db_res?

 
Post new topic   Reply to topic Printable version
 View previous topic  Repel physics Post :: Post Checklist for next core compile  View next topic  
Author Message
Initrd.gz
Seasoned Helper


Joined: Sep 18 2008
Posts: 134
Location: Over there --->
Offline

PostPosted: Sun Jan 25, 2009 4:23 pm    Post subject: What exactly is db_res? Reply to topic Reply with quote

How do you use it? It is from the reldb.h include. I just want to get/store some data in a database. There is almost no documentation on it. What is it used for?

Same with query_callback.

Thanks for the help.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sun Jan 25, 2009 8:09 pm    Post subject: Reply to topic Reply with quote

You don't use it directly. You're given it in the query callback, and you can get information out of it using the Ireldb Get functions.

Look at aliasdb for more information. The hscore_database.c file also uses Ireldb extensively, though there's some bad techniques in there.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Initrd.gz
Seasoned Helper


Joined: Sep 18 2008
Posts: 134
Location: Over there --->
Offline

PostPosted: Thu Jan 29, 2009 6:12 pm    Post subject: Reply to topic Reply with quote

K, thanks. For anyone who is searching the board, its an SQL result.

Another question: To get the first row using GetRow from reldb.h, do you pass 0 or 1 as the parameter?

Thanks in advanced.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Thu Jan 29, 2009 6:51 pm    Post subject: Reply to topic Reply with quote

GetRow doesn't accept an integer as a parameter, so I'll assume you meant GetField. Indexes for GetField start at 0.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can 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
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 360 page(s) served in previous 5 minutes.

phpBB Created this page in 1.022321 seconds : 28 queries executed (97.5%): GZIP compression disabled