I am fairly new to Pawn, so I'm still in the learning process. Whenever I run the script on my TFC server and use the command "ammx plugins" to make sure it was included correctly i tend to get "[ 20] unknown unknown unknown stats.amxx bad load" and "( 20) Load fails: Invalid Plugin (plugin "stats.amxx")" a lot. It compiles fine without any errors. It is not only this script, but simple ones. And even that tutorial on making pawn amxx plugin (though I did get it to work).
So what is wrong with the following? (btw its kinda not done since im in the middle of it, but can't really continue if I do not know what I am doing wrong. lol)
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <sqlx>
#include <fun>
new PLUGIN[] = "ZeNfA.net Player Stats"
new AUTHOR[] = "Bloodix"
new VERSION[] = "0.01"
new Host[32]
new User[32]
new Pass[32]
new DB[32]
new Error[128]
new ErrCode
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
get_cvar_string("amx_sql_host", Host, 32)
get_cvar_string("amx_sql_user", User, 32)
get_cvar_string("amx_sql_pass", Pass, 32)
get_cvar_string("amx_sql_db", DB, 32)
register_clcmd("say /count", "zna_get_count")
}
public zna_get_count(id, level, cid)
{
console_print(id, "test")
return PLUGIN_CONTINUE
}
Thank you