Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Make some extra cash by selling Cronwerks mods with our affiliate system.


AuthorTopic: I have a problem with my Criminal.php  (Read 436 times)

Nubbadon

  • Basic Member
  • *
  • Reputation Power: 5
  • Nubbadon has no influence.
  • Offline Offline
  • Posts: 10
    • View Profile
I have a problem with my Criminal.php
« on: July 22, 2009, 06:16:21 PM »
I'm currently using v2 and when i go to my crimes page i see this above where the crimes are suposed to be.

Warning: Invalid argument supplied for foreach() in /home/nubbadon/public_html/criminal.php on line 16

And also when i try to make a crime it gives me an error:

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', 'saddfdfghj', 'sdfghj', 'sffdghjh', 'fdsghj', 5, 'Cought doing a crime'' at line 1
Query was INSERT INTO crimes (crimeNAME, crimeBRAVE, crimePERCFORM, crimeSUCCESSMUNY, crimeSUCCESSCRYS, crimeSUCCESSITEM, crimeGROUP, crimeITEXT, crimeSTEXT, crimeFTEXT, crimeJTEXT, crimeJAILTIME, crimeJREASON, crimeXP) VALUES( 'noob', '1', '((WILL*0.8)/2.5)+(LEVEL/4)', '100', , 0, '1', 'saddfdfghj', 'sdfghj', 'sffdghjh', 'fdsghj', 5, 'Cought doing a crime', 5)

Any1 know what might be the problem? I know theres something wrong with line 16 in my criminal.php but i dont know how to fix this xD
Logged

Cronus

  • Administrator
  • Excellent Member
  • *****
  • Reputation Power: 1946
  • Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!
  • Offline Offline
  • Posts: 479
    • View Profile
    • WWW
Re: I have a problem with my Criminal.php
« Reply #1 on: July 23, 2009, 11:24:03 PM »
Looks like you are simply missing a value here:
Code: [Select]
'100', , 0
Also, topic moved to Error/Bug Help.
« Last Edit: July 24, 2009, 12:12:25 AM by Cronus »
Logged

smkin

  • Basic Member
  • *
  • Reputation Power: 4
  • smkin has no influence.
  • Offline Offline
  • Posts: 10
    • View Profile
Re: I have a problem with my Criminal.php
« Reply #2 on: November 07, 2009, 12:27:08 PM »
so where would we add that to sort out the problem
Logged

Danny696

  • Excellent Member
  • ***
  • Reputation Power: 284
  • Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.
  • Offline Offline
  • Posts: 473
    • View Profile
Re: I have a problem with my Criminal.php
« Reply #3 on: November 08, 2009, 02:22:40 PM »
When making a new crime, if the money won is nothing, put 0, make sure every box is filled out.
Logged
My Game: GraveYard; Madness || Projects; N/A -  Available for work. Please IM/PM me.

smkin

  • Basic Member
  • *
  • Reputation Power: 4
  • smkin has no influence.
  • Offline Offline
  • Posts: 10
    • View Profile
Re: I have a problem with my Criminal.php
« Reply #4 on: November 09, 2009, 10:54:14 AM »
nice one for that .....and the fix was so simple lol
Logged