Re: [DB] Database Manager
nice plugin, i'm using it on my server now in case it's required by bank.
I hope you write more awesome plugins ) |
Re: [DB] Database Manager
Questions
1-How does this work? How does this save the information? 2-Can you give some examples: -Creating a column if it doesn't exist -Reading and writing to columns named "xp"(integer) "name"(string) Suggestions 1-Can you remove 'add'(bool) and add 'todo'(string) to DB_SetInfo? ('todo' can be 'set', 'inc' or 'dec') 2-Saving and reading to custom ID's: PHP Code:
|
Re: [DB] Database Manager
Well, the whole idea of the plugin is people don't have to select tables, create users and bla bla bla...
SM Bank: MySQL is the only published plugin I finished that is based on this: http://forums.alliedmods.net/showthread.php?t=60110 I tried to make it as easy as possible... for example, for get player XP, you can just: PHP Code:
and maybe a cvar changing what player id will be |
Re: [DB] Database Manager
But you use "client". So it's saved with Name, IP or SteamID and it's not enough. Players' change names, some players have dynamic IP's and this can't be used to save plugin settings.
|
Re: [DB] Database Manager
if SteamID is not enough, I wonder how you are keeping data :O
and player data are saved when they disconnected, with their Steam_id as id |
Re: [DB] Database Manager
Yea even I am lost on that comment.
|
Re: [DB] Database Manager
i'm sorry. i'm a complete noobie to SourceMod. A mani transfer over.
So I'm trying to set up the bank. I have no idea how to setup mysql. So i'm not sure if I have a database made somewhere on my server, nor do I know if I dont have a db, what I do to set one up. If somebody could give me damn near a step by step instruction to installing both bank and the database manager I would really appreciate it |
Re: [DB] Database Manager
The same way you setup a plugin...
Just put both .smx files into your plugins folder |
Re: [DB] Database Manager
Hey "Nican" how can I get rid of this error. Thanks for your help. We are still using a "free" Mysql Database. I was thinking maybe the database was being slow or something.
L 10/01/2007 - 00:19:45: [SM] Native "SQL_FetchRow" reported: Invalid query Handle 0 (error: 4) L 10/01/2007 - 00:19:45: [SM] Debug mode is not enabled for "a_mysql.smx" L 10/01/2007 - 00:19:45: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 6 on |
Re: [DB] Database Manager
Change to SQLite
Apparently your MySQL is not being able to make complete requests, and failing in gathering player data |
| All times are GMT -4. The time now is 18:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.