basfik
New Member
- Joined
- Dec 6, 2008
- Messages
- 21
- Reaction score
- 0
Hello all!
I need help with my server. I search information in all forum and i only find in source forgotten.
When somebady get 4mld+ exp get debug.
I change in my source:
With player.h i add:
Next i change all unit32_t for unit64_t experience and is doesn't work but compilling is good. Can somebady help me with this script.
I need help with my server. I search information in all forum and i only find in source forgotten.
When somebady get 4mld+ exp get debug.
I change in my source:
Code:
uint64_t experience = player->getExperience();
if(experience > 0x7FFFFFFF && player->getOperatingSystem() == CLIENTOS_WINDOWS) //Windows client debugs after 2,147,483,647 exp
msg.AddU32(0x7FFFFFFF);
else
msg.AddU32(experience);
With player.h i add:
Code:
OperatingSystem_t getOperatingSystem() const {return operatingSystem;}
void setOperatingSystem(OperatingSystem_t clientos) {operatingSystem = clientos;}
Next i change all unit32_t for unit64_t experience and is doesn't work but compilling is good. Can somebady help me with this script.