Saving data
Hi everyone ;)
I trying to avoid problems with data saving. Plugin which i'm creating/rewriting will have around 20 classess + level system. For each class i have to save: Code:
Player exeprience | Point 1 | Point 2 | Point 3 | Point 4 | Player nameServer will have around 4000 players ( based on statsx top15 counter ). 4000 players, and let's say every player uses every possible class, that is around 80000 lines of data. Main problem is that i don't have ability to use web sites/my sql bases, etc. Everything must be stored on server. Furthermore in future i'm planning to add top15 (probbably use this snippet if i decide for nvault - https://forums.alliedmods.net/showthread.php?t=184654 ) Currently i'm using nvault for data (without player name), and ini file for top15 rank which is loaded into array on every mapchange and sorted on every /top15 call (arraysort); In ini file i save only the player class with highest level. One player, one line in file. I searched a lot, and found out that war3 plugins use nvault for every class. Is that better, instead of one vault? Does anyone have any suggestions? btw plugin which i'm rewriting is badly coded, and it crashes the server http://forums.alliedmods.net/showthread.php?p=1406163 |
Re: Saving data
Quote:
If you don't have web(phpmyadmin) and can't modify SQL tables, you can use Navicat lite. Very easy and handy program. Free to use aswell. Quote:
============================================= In my opinion it's best to use MySQL if you want to save a huge amount of data. It has a very wide ability to work with data. The main problem is that you'll have to learn commands and syntaxes. That's the hard part. Nvault is basicly a prototype of MySQL and is quite tiny comparing to MySQL I think, but still, it's very effective. It's main purpose is to only save a get the data. It's very easy to use. Get, Store. Tnx bye. Which is best to use, is up to you. Im used to MySQL, so I can't tell you much about nVault since I only used it once. |
Re: Saving data
Quote:
Quote:
Quote:
Quote:
|
Re: Saving data
Well, if the hosting company don't provide MySQL database, then I dunno.
Btw, if I'm right, amxmodx have an inbuild SQL lite in their system. Thought I never used it, you might check it out aswell. |
Re: Saving data
Quote:
Anyone willing to post simple sqllite load/save data with "double" key ( steamid-classid )?? I have never used SQL Lite, searched and found this http://forums.alliedmods.net/showthread.php?t=46779, but it's basic and no data loading :S |
Re: Saving data
That's enought for you to start.
Gets data from table zomg where column you equals 1 or 4. As result you'll get whole row which you will have to handle PHP Code:
PHP Code:
|
Re: Saving data
PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 08:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.