Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Have you purchased a mod and lost your copy? Just file a support ticket through your "My Mods" page.


This forum is now closed and has moved to a new location! Click here to find out why.

AuthorTopic: I have a problem with my Criminal.php  (Read 982 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
  • Senior Member
  • *****
  • Reputation Power: 2901
  • 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: 550
    • MSN Messenger - preston__08@hotmail.com
    • 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
My msn is preston__08@hotmail.com if anyone is interested, I am online frequently.

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

  • Senior Member
  • ****
  • Reputation Power: 317
  • Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.
  • Offline Offline
  • Posts: 540
    • View Profile
    • WWW
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
Project Choosen - 10%
Daniel - Hanson . Com

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
 


This forum is now closed and has moved to a new location! Click here to find out why.