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?