Raised This Month: $32 Target: $400
 8% 

[INC] SQLVault


Post New Thread Reply   
 
Thread Tools Display Modes
PsYChOPaTiQuE
Veteran Member
Join Date: Jan 2009
Location: Paris
Old 01-31-2011 , 12:28   Re: [INC] SQLVault
Reply With Quote #31

I have this errors:

__________________
PsYChOPaTiQuE is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-31-2011 , 12:30   Re: [INC] SQLVault
Reply With Quote #32

It seems your .inc are outdated. Update them with the latest amxx version.
__________________
Arkshine is offline
PsYChOPaTiQuE
Veteran Member
Join Date: Jan 2009
Location: Paris
Old 01-31-2011 , 13:47   Re: [INC] SQLVault
Reply With Quote #33

It works !
Thank you
__________________
PsYChOPaTiQuE is offline
t3hNox
Senior Member
Join Date: Oct 2009
Old 01-31-2011 , 14:26   Re: [INC] SQLVault
Reply With Quote #34

I'm currently using the default nvault to save data for my mod. The problem is that I believe loading and saving data to nvault cause very noticeable performance issues such as high CPU usage time to time, screen freezes to players and as a result lags too. I guess it is because of that loading and saving take place very often (on client connect/disconnect which _is_ very often) and there are made a lot of new nvault entries every day.

So I wanted to ask if converting saving, loading methods and generally all this data storage from nvault to SQLite (using this include) would improve the server's performance ?

Last edited by t3hNox; 01-31-2011 at 14:30.
t3hNox is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 02-07-2011 , 05:44   Re: [INC] SQLVault
Reply With Quote #35

Wow! At last, it was easy to work with SQLite.
Thanks!
__________________
The functional way is the right way
GordonFreeman (RU) is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-23-2011 , 14:54   Re: [INC] SQLVault
Reply With Quote #36

Well let me set up for my question.

My test server is a windows machine sitting next to me.. It was added to my remoteMySql access list back when Drekes released his Watchlist. My battlefield plugin Remote SQL works fine for this server.

My hosted server is a linux machine hosted by gameservers. It was added to my remoteMySql access list last night and the plugin cannot open the database file..

Both configs and .amxx plugins are identical.. Any reason for it not to work? or ideas on how to fix it?

Just so there is no confusion.. The host name is not local host.. and the DB is hosted at xvgaming.com through siteground.






im just gonna asume you have no idea why my linux server cant connect to the db when my windows machine does just fine??

GRRR!!!! lol..

Last edited by Doc-Holiday; 08-29-2011 at 01:56.
Doc-Holiday is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 09-19-2011 , 18:48   Re: [INC] SQLVault
Reply With Quote #37

Been using this for a lot of my plugins.

Great work.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 09-21-2011 , 14:41   Re: [INC] SQLVault
Reply With Quote #38

I'm trying to make a ranking system, but sorting the array is becoming a problem. I'm saving the exp and name of the users in the database, and using their steamids to access the information. My problem is, although I can create a sorting function, it includes the names of the users in the sort, when I do not want that. If I prune the names from the vault and do the sorting function, then when I need to get their names, I can no longer do so.

My question is: is it possible to somehow omit certain keys, or only have a certain key in a read_all_ex function?
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 09-21-2011 , 17:06   Re: [INC] SQLVault
Reply With Quote #39

Quote:
Originally Posted by Tirant View Post
I'm trying to make a ranking system, but sorting the array is becoming a problem. I'm saving the exp and name of the users in the database, and using their steamids to access the information. My problem is, although I can create a sorting function, it includes the names of the users in the sort, when I do not want that. If I prune the names from the vault and do the sorting function, then when I need to get their names, I can no longer do so.

My question is: is it possible to somehow omit certain keys, or only have a certain key in a read_all_ex function?
Just don't use the key :O

aData[ SQLVEx_Key1 ]

or

aData[ SQLEx_Key2 ]

Don't think you are required to use them.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 09-21-2011 , 23:22   Re: [INC] SQLVault
Reply With Quote #40

Quote:
Originally Posted by nikhilgupta345 View Post
Just don't use the key :O

aData[ SQLVEx_Key1 ]

or

aData[ SQLEx_Key2 ]

Don't think you are required to use them.
read_all returns an an entire array of all entries, and even though both key1's are the same, there are 2 entries for each key2's. I found a solution though that seems to be working. I basically sort the array like I did, but sort the parts other than exp last.

I know that MySql has some ranking built into it, but something like I mentioned would be really helpful I think. So you could use a more specific real_all_ex and it would only return key2's matching the one entered.
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]

Last edited by Tirant; 09-21-2011 at 23:24.
Tirant is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode