SuperHero Mod Stats v2.0
Mysql Saving Method

Before you are able to use the SuperHero Mod Stats system, you need to be saving your server's xp, in a mysql database.
This guide will help you set your server to save in a mysql database.
If you do not have a mysql server, read this chapter.

Start:
First you have to make sure that you have the latest version of the superheromodmysql.amx(x) (Find it at the bottom of the page).
Then go to your plugins.ini file and do this:

;superheromodvault.amxx  ; SUPERHEROMOD
superheromodmysql.amxx ; SUPERHEROMOD
This disables the vault saving method, and enables the mysql saving method.

Next go to your shconfig.cfg.
If you are running a web server on the same computer as you run your server on, change the MySQL settings to this:
// *** MySQL Settings, Only Needed if using the mysql saving method ***
// Uncomment the cvar lines to enable these settings
sh_mysql_host "localhost"
sh_mysql_user "root"
sh_mysql_pass ""
sh_mysql_db "sherodb"
This tells SuperHero Mod where it shall store the XP.

Now open your modules.ini. It will need to look like this:

AMXX:
; -------------------------------------------
; Database Access - only enable one of these
; -------------------------------------------
; MySQL
mysql_amxx_i386.so
mysql_amxx.dll
mysql_amxx_amd64.so
AMX:
;MySQL Support
mysql.dll
mysql_i586.so
When this is done, your server should be using the MySQL saving method.
If it does not work, check your shconfig.cfg, and make sure you are using the right MySQL settings.
If this isn't the problem, ask in the forums.



-------------------------------------------------------------------------------------