Raised This Month: $ Target: $400
 0% 

Sql Queries


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
zeus
Senior Member
Join Date: Jul 2008
Old 11-30-2010 , 15:11   Sql Queries
Reply With Quote #1

I have a big small problem...
I have this code
Code:
        new szTemp[1024];
	format(szTemp,charsmax(szTemp),
	"INSERT INTO `%s` 
	(`authid`,`name`,`tkills`,`theadshots`,`deaths`)VALUES \
	('%s','%s','0','0','0') \
	(`damage`,`points`,`c4p`,`c4d`)VALUES \
	('0','0','0','0') \
	(`m4a1hs`,`ak47hs`,`awphs`,`famashs`,`galilhs`)VALUES \
	('0','0','0','0','0') \
	(`knifehs`,`deaglehs`,`usphs`,`glockhs`)VALUES \
	('0','0','0',0') \
	(`hekills`,`m4a1kills`,`ak47kills`,`awpkills`,`famaskills`)VALUES \
	('0','0','0','0','0') \
	(`galilkills`,`knifekills`,`deaglekills`,`uspkills`,`glockkills`)VALUES \
	('0','0','0','0','0') \
	(`status`)VALUES('%s');",
	gTn,gTn,szSteamId,szName,gTn,gTn,gTn,gTn,gTn,gTn,status);
How to make it work?, i'm rubbish at sql
The error I get is :
Code:
error 037 : invalid string ( possibly non-terminated string)

Last edited by zeus; 11-30-2010 at 15:16.
zeus 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 11:20.


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