se7enet purgatorio

Page 1 of 1 1
Topic Options
Rate This Topic
#15213 - 07/23/07 03:16 AM Can anyone help me with this?
Sparkyte
Malt-o-Meal


Registered: 07/17/07
Posts: 2

Offline
I have this problem here
Actually i don't have it,but one of my users do.How can i fix it.I think the problem appeared when i install the kingdoms mod but i am not sure.

PP Sorry for the english...


Edited by Sparkyte (07/23/07 03:17 AM)

Top
#15216 - 07/23/07 10:12 AM Re: Can anyone help me with this? [Re: Sparkyte]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
I've had that error in a different mod. It's invalid coding. It's not actually in the database field name, its in your coding.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#15223 - 07/23/07 05:42 PM Re: Can anyone help me with this? [Re: Fayt]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
I went back and read that thread, and seriously dont remember posting any of those posts. Seriously. What the hell. I DONT REMEMBER ANY OF IT!

Anyway, as follymaster said, there is nothing wrong with the database, there is something wrong with the code.

Try checking the code around any "_exp" lines and see what is going on. Somewhere it is checking for the experience in the databse, but there is no level next to the _exp column. Jamin said in the other thread it needs something like 1_exp 2_exp, if nothing is set it comes out as just _exp
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#15238 - 07/25/07 09:01 AM Re: Can anyone help me with this? [Re: Sparkyte]
Sparkyte
Malt-o-Meal


Registered: 07/17/07
Posts: 2

Offline
I found the problem...

It is here:

//simple exp needed mod.. poorly coded by Anman :P and fixed by k0zy :P
$levelquery = doquery("SELECT ". $userrow["charclass"]."_exp FROM {{table}} WHERE id='".($userrow["level"]+1)."' LIMIT 1", "levels");
$levelrow = mysql_fetch_array($levelquery);
$userrow["nextlevel"] = $levelrow[$userrow["charclass"]."_exp"];
$userrow["expneed"] = $userrow["nextlevel"] - $exp_raw;

Top
#15239 - 07/25/07 10:40 AM Re: Can anyone help me with this? [Re: Sparkyte]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Your going to be chewed out real bad. *grabs the popcorn, sits back and enjoys the show.*
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#15248 - 07/27/07 12:02 AM Re: Can anyone help me with this? [Re: Fayt]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
Heres how you fix it... Replace that code there, with the following code

 Code:
//
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
Page 1 of 1 1


Hop to:

se7enet

Barack Obama Logo