Raised This Month: $ Target: $400
 0% 

Whats wrong with this [DBI]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 04-05-2007 , 23:04   Whats wrong with this [DBI]
Reply With Quote #1

Code:
public client_putinserver(id)
{
	if(dbc == SQL_FAILED)
	{
		return PLUGIN_HANDLED
	}
	new authid[33], query[256];
	get_user_authid(id, authid, 32)
	format(query,255,"SELECT steamid FROM bmjailmod")
	result = dbi_query(dbc,"%s",query)
	if(result <= RESULT_NONE && equali(authid, "STEAM_ID_PENDING"))
	{
		client_print(0, print_chat, "[Jail Mod Debug] Trying to add %s", authid);
		format(query,255,"INSERT INTO bmjailmod (steamid,flag) VALUES('%s', '0')",authid)
		dbi_query(dbc,"%s",query)
		client_print(id,print_console,"%s",query)
		server_print("%s",query)
	}
	dbi_free_result(result)
	return PLUGIN_CONTINUE;
}
I tryed Returning it handled it doesn't work eathier.

This only adds the FIRST person in the server. whY?
Styles is offline
Send a message via AIM to Styles
 



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 06:45.


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