Jump to content
MakeWebGames

Having Problems With My Crimes


xRudeboiix

Recommended Posts

I have tried adding some crimes to my game but keep getting an error message like this:

QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 0, '1', 'You Walk To The Bus Station And Start To Search For Cash', 'You Find S' at line 1

Query was INSERT INTO crimes (crimeNAME, crimeBRAVE, crimePERCFORM, crimeSUCCESSMUNY, crimeSUCCESSCRYS, crimeSUCCESSITEM, crimeGROUP, crimeITEXT, crimeSTEXT, crimeFTEXT, crimeJTEXT, crimeJAILTIME, crimeJREASON, crimeXP) VALUES( 'Search For Cash', '2', '((WILL*n)/5)+(LEVEL/5) ', '11', , 0, '1', 'You Walk To The Bus Station And Start To Search For Cash', 'You Find Some Cash That Was Dropped By An Old Man', '', '', , '', )

Anyway to fix this?

Link to comment
Share on other sites

I have tried adding some crimes to my game but keep getting an error message like this:

QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 0, '1', 'You Walk To The Bus Station And Start To Search For Cash', 'You Find S' at line 1

Query was INSERT INTO crimes (crimeNAME, crimeBRAVE, crimePERCFORM, crimeSUCCESSMUNY, crimeSUCCESSCRYS, crimeSUCCESSITEM, crimeGROUP, crimeITEXT, crimeSTEXT, crimeFTEXT, crimeJTEXT, crimeJAILTIME, crimeJREASON, crimeXP) VALUES( 'Search For Cash', '2', '((WILL*n)/5)+(LEVEL/5) ', '11', , 0, '1', 'You Walk To The Bus Station And Start To Search For Cash', 'You Find Some Cash That Was Dropped By An Old Man', '', '', , '', )

Anyway to fix this?

 

First off:

 

QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 0, '1', 'You Walk To The Bus Station And Start To Search For Cash', 'You Find S' at line 1
Query was INSERT INTO crimes (crimeNAME, crimeBRAVE, crimePERCFORM, crimeSUCCESSMUNY, crimeSUCCESSCRYS, crimeSUCCESSITEM, crimeGROUP, crimeITEXT, crimeSTEXT, crimeFTEXT, crimeJTEXT, crimeJAILTIME, crimeJREASON, crimeXP) VALUES( 'Search For Cash', '2', '((WILL*n)/5)+(LEVEL/5) ', '11', , 0, '1', 'You Walk To The Bus Station And Start To Search For Cash', 'You Find Some Cash That Was Dropped By An Old Man', '', '', , '', )

 

Secondly, count the commas in your query. I see at least 2 too many.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...