Raised This Month: $51 Target: $400
 12% 

#include <dbi> error;dbi.inc


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
rwhere
Junior Member
Join Date: Sep 2006
Old 09-10-2006 , 17:59   #include <dbi> error;dbi.inc
Reply With Quote #1

Hi im writing a sql database for Counter Strike and after i compile this code:

Code:
#include <amxmodx>
#include <amxmisc>
#include <dbi>
public plugin_init() {
    register_plugin("1","1", "fatal")
    register_concmd("seemeeid","steamid",ADMIN_SLAY,"this is a descripption")
    register_concmd("server_getgac","gac",ADMIN_SLAY,"Get your GAC");
}
public steamid(id)
{
    new theid[35]
    get_user_authid(id,theid,34)
client_print(id,print_chat,"this is your id: %s",theid)    
}
public client_connect(id)
{
client_cmd(id,"bind f4 seemeeid")    
}
public client_authorized(id)
{
    new theid[35]
    get_user_authid(id,theid,34)
    client_print(id,print_chat,"this is your id: %s",theid)    


}
the script doesnt work.im running a half life dedicated server C:\HLServer\. There is no compie error. But if i remove #include <dbi> it works, still no compile error.
This is the working source code:
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
    register_plugin("1","1", "fatal")
    register_concmd("seemeeid","steamid",ADMIN_SLAY,"this is a descripption")
    register_concmd("server_getgac","gac",ADMIN_SLAY,"Get your GAC");
}
public steamid(id)
{
    new theid[35]
    get_user_authid(id,theid,34)
client_print(id,print_chat,"this is your id: %s",theid)    
}
public client_connect(id)
{
client_cmd(id,"bind f4 seemeeid")    
}
public client_authorized(id)
{
    new theid[35]
    get_user_authid(id,theid,34)
    client_print(id,print_chat,"this is your id: %s",theid)    

}
But i still want to connnect to a database and the dbi include doesnt let me.
Its probably one of the files when running my dedicated server as there is no compile error.

Can someone please help me?
rwhere 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 12:04.


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