Raised This Month: $ Target: $400
 0% 

What is wrong with this script?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bloodix
New Member
Join Date: Aug 2009
Old 08-08-2009 , 01:42   What is wrong with this script?
Reply With Quote #1

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(PLUGINVERSIONAUTHOR)
    
    
get_cvar_string("amx_sql_host"Host32)
    
get_cvar_string("amx_sql_user"User32)
    
get_cvar_string("amx_sql_pass"Pass32)
    
get_cvar_string("amx_sql_db"DB32)
    
    
register_clcmd("say /count""zna_get_count")
}

public 
zna_get_count(idlevelcid)
{
    
console_print(id"test")
    
    return 
PLUGIN_CONTINUE

Thank you
Bloodix is offline
 


Thread Tools
Display Modes

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 18:25.


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