Frustration!!! (2 Problems)
Hey guys
I'm getting really frustrated and feel like giving up, but I've done so much work I don't want to. I've been getting the weirdest errors since I added this line : num_to_str(PlayerExp[id],tmp_PlayerExp,32) Although it's probably unrelated. Anyways, here's the latest: Fuck... server crashed, hold on. Problem #1 Quote:
Code:
Any idea what the problem is? I can't see how it can be invalid, because it goes from 0 to 32 and the array is from 0 to 34. Problem #2 When the users exp is loaded, it is supposed to run through a quick calculation to tell the users level and say "You are level #x" However, it always says 100; even if someone has 0 exp. Code:
Right now those are my 2 biggest problems, I still don't think you gain exp right, but i'll get to that after these. If someone can give me a hand, i'd really appreciate it. |
OK, I dunno wtf is going on. I think i've almost got it to work (for me). I've modded my code so much over the past few hours, it could have been anything. So i'm starting to get happy, although not really happy because i'm still a level 100 with 0 experience. :twisted: So anyways, i'm getting happy, then some random asshole comes and joins my server and it says game commencing; then BOOM! it crashes!!! How the hell can I fix the problem if it crashes and I can't see the error? Anybody, somebody? Please help me :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:
|
Wow... it is now 10:40 PM and I finally figured out that the error was equivelant to an integer overflow. It's only been about 7 hours since I first got it! Congratualtions, excuse me while I go slit my wrist, and thanx for the help.
|
| All times are GMT -4. The time now is 09:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.