help Level display

12/14/2017 05:11 thetoys#1
My level display has a problem. After it was over 256, it came back to show 1 again and went to 44.

Friends list and guild list

[Only registered and activated users can see links. Click Here To Register...]
12/14/2017 09:19 xTwiLightx#2
Sounds like some sort of overflow. Check the type of the level in your WndMessengerCtrl.h and change it to int.
12/14/2017 09:51 thetoys#3
my flie




After passing Level 256,

Level 257 will change to 1?
I want to know how to fix it.


[Only registered and activated users can see links. Click Here To Register...]
12/16/2017 09:32 thetoys#4
Dun
12/16/2017 17:13 Zeljian#5
try to search about in DbManagerSave.cpp, other features about up to date system save here., about your problem is need the update database on your source.,

just saying
12/16/2017 18:03 thetoys#6
Quote:
Originally Posted by Zeljian View Post
try to search about in DbManagerSave.cpp, other features about up to date system save here., about your problem is need the update database on your source.,

just saying
???
my flie

12/16/2017 19:03 Mike Oxmaul#7
show your wndmessengerex.cpp
12/16/2017 19:39 Nortix#8
check playerdata.h, because the reason for the overflow is there :rolleyes:
12/17/2017 00:41 thetoys#9
Quote:
Originally Posted by Jupsi332 View Post
show your wndmessengerex.cpp
It has this thing too.

Quote:
Originally Posted by Nortix View Post
check playerdata.h, because the reason for the overflow is there :rolleyes:
I will try to see it.

Quote:
Originally Posted by Nortix View Post
check playerdata.h, because the reason for the overflow is there :rolleyes:
BYTE nLevel; Should I fix this? What is it?

12/17/2017 05:35 Sammyz#10
Quote:
Originally Posted by Nortix View Post
check playerdata.h, because the reason for the overflow is there :rolleyes:
sir tell me so i can sell fix with seb file pls halp
12/17/2017 13:23 cookie69#11
Quote:
Originally Posted by thetoys View Post
It has this thing too.



I will try to see it.



BYTE nLevel; Should I fix this? What is it?

You have zero knowledge in C++ et you want to make a server? Ok why not...
Imo go learn programming before to open 100 threads asking for help.
For your problem, BYTE will be 0-255 if the compiler is using /j option so that's explain the overflow.
Just make it unsigned short or int.
12/18/2017 02:28 Hekmatyar#12
fix like
Code:
typedef unsigned short ISuckAndWantToMakeAServerFromOtherPeoplesCodeAndBegForShitRatherCodingAndLearningSomeBasicStuff;
ISuckAndWantToMakeAServerFromOtherPeoplesCodeAndBegForShitRatherCodingAndLearningSomeBasicStuff nLevel;
12/18/2017 12:37 thetoys#13
Thank you everyone, I made it.