Hello,
i just wanted to customize this stats script
http://forums.alliedmods.net/showthread.php?t=23010
but i decided to rewrite it completely.
this is my first real contact with amxx scripting so i do not know if there a any logic error. I fixed all errors shown by the web compiler... there is still this warning:
Quote:
|
/home/groups/amxmodx/tmp3/phpfTOGdk.sma(42) : warning 204: symbol is assigned a value that is never used: "error"
|
well this is my rewritten code:
Are there any fatal errors?
[php]#include <amxmodx>
#include <amxmisc>
#include <sqlx>
#include <engine>
#define PLUGIN "Total Kills On Server"
#define VERSION "1.0"
#define AUTHOR "Sonic remaked by XyXEL"
new Handle:g_SqlTuple
new g_Error[512]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg","death","a")
new error[33], hostname[64], sqluser[64], sqlpass[64], sqldb[64]
get_cvar_string("amx_sql_host", hostname, 63)
get_cvar_string("amx_sql_db", sqldb, 63)
get_cvar_string("amx_sql_pass", sqlpass, 63)
get_cvar_string("amx_sql_user", sqluser, 63)
register_clcmd("say /skill", "XySkill", 0, "- Displays your server ranking")
//register_clcmd("say /top15", "XyTop", 0, "- Displays the servers top 15 players")
}