Code help plz
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:
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") } |
Re: Code help plz
Here
Code:
Code:
|
Re: Code help plz
well, yes, thats true ^^ thx
hope the script wont crash my server, going to test it now |
Re: Code help plz
It's just a warning, not an error. The plugin still compiled fine ;)
|
Re: Code help plz
Quote:
|
Re: Code help plz
Show us the code, please.
|
Re: Code help plz
i got the error..... it was a wrong sql query... it put only 3 values in db, but must be 4
|
Re: Code help plz
well.... i just finished and fixed some bugs.
it now logs the kills and deaths of each player and a player can see his rank by typing /rank and the top 10 player by typing /top10 to show the top10 i use a phpscript which can be included in a html frame by the motd. it all works quite fine. |
| All times are GMT -4. The time now is 10:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.