Raised This Month: $ Target: $400
 0% 

Code help plz


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
XyXEL
Junior Member
Join Date: Jun 2007
Old 06-05-2007 , 13:08   Code help plz
Reply With Quote #1

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")

}

Last edited by XyXEL; 06-05-2007 at 18:06.
XyXEL is offline
 



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 10:42.


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