Raised This Month: $ Target: $400
 0% 

SQL sending killer id to SQL Query


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 08-09-2014 , 07:56   Re: SQL sending killer id to SQL Query
Reply With Quote #1

Thats so unnecessary. Why dont u use the 'traditional way', load on player connect, save no user disconnect?
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
devWaleed
Member
Join Date: Apr 2013
Location: Karachi, Pakistan
Old 08-09-2014 , 15:25   Re: SQL sending killer id to SQL Query
Reply With Quote #2

Quote:
Originally Posted by quark View Post
Thats so unnecessary. Why dont u use the 'traditional way', load on player connect, save no user disconnect?
Load what? O.o Save what? I am saving kills in SQLx after some interval.


EDIT: There is another problem now.
Code:
	if(SQL_NumResults(Query) == 1){
		flags = SQL_ReadResult(Query, 2);	
		client_print(0, print_chat, "%s flag", flags);
	}
Database structure:
http://i.minus.com/ibpeuIuxaT1jGf.png

In database, second field is flag. It has p flag stored for me. But when I print it, it prints nothing but blank space. Any help?
__________________
Steam: Waleedbaig2013

Last edited by devWaleed; 08-10-2014 at 02:08.
devWaleed is offline
Send a message via Skype™ to devWaleed
Reply



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:57.


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