Jump to content
MakeWebGames

Crimes not giving experience


muthchris

Recommended Posts

My crimes are adding experience to the user's database, but the Exp% isn't going up. It was yesterday, then all the sudden it quit. When members attack others they get experience and their EXP% goes up for that. I uploaded my original criminal.php and docrime.php files and it didn't help. So I deleted the crimes database and started it over, it still did not help. Anyone have any clue what the heck happened here and how to fix it? :cursing:

Link to comment
Share on other sites

What?

I think the only level you can't get EXP% on is when your level 2,41?,???,??? what ever number like that. Have you looked at your - (staff_crimes.php)? You might of removed the EXP from that Query needed.

Look at line 50 and replace with this:

[mysql]$db->query("INSERT INTO `crimes` (

`crimeNAME` ,

`crimeBRAVE` ,

`crimePERCFORM` ,

`crimeSUCCESSMUNY` ,

`crimeSUCCESSCRYS` ,

`crimeSUCCESSITEM` ,

`crimeGROUP`,

`crimeITEXT` ,

`crimeSTEXT` ,

`crimeFTEXT` ,

`crimeJTEXT`,

`crimeJAILTIME` ,

`crimeJREASON` ,

`crimeXP`) VALUES (

'{$_POST['name']}' ,

'{$_POST['brave']}' ,

'{$_POST['percform']}' ,

'{$_POST['money']}' ,

'{$_POST['crys']}' ,

'{$_POST['item']}' ,

'{$_POST['group']}' ,

'{$_POST['itext']}' ,

'{$_POST['stext']}' ,

'{$_POST['ftext']}' ,

'{$_POST['jtext']}' ,

'{$_POST['jailtime']} ,

'{$_POST['jailreason']}' ,

'{$_POST['crimexp']}')");[/mysql]

I just set it out like that instead of scrolling along. When you put that in staff_crimes.php, set the lines straight. Or how ever you like it. :) I think all that needed is there. :)

Link to comment
Share on other sites

Check the database for the crimes and verify they have a exp value set. I know you have said you set it when creating the crime but that is no guarantee that its in the database.

So check the table crimes. Field crimeXP. If there is a value there for the crime being tested then its to do with the file docrime.php

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