• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows I Got Problem With HP

bodycarcoo11

Mapper
Joined
Apr 26, 2011
Messages
213
Reaction score
9
Location
USA
Hello,
I got problem when player his hp be mroe than 2100kk ( 2100000000 ) he get hp 1 ghow to let it infinity

please i need reply's

BUMP

BUMP ANY ANSWERS IAM ANNOYED THIS SITE IS NOT HELPING ME AT ALL
 
Last edited by a moderator:
1. Maybe if you followed the rules of this board people would be more willing to help.
2. Maybe if you contributed a bit more around here people would be more willing to lend a hand.
3. Maybe if you where a bit more patient and polite people would be more willing to assist you with your problems.
4. Regarding your problem: You are exceeding the limitations of the server. You must edit your source code and re-compile the server in order for it to be able to have health values exceeding two billion.
 
1. Maybe if you followed the rules of this board people would be more willing to help.
2. Maybe if you contributed a bit more around here people would be more willing to lend a hand.
3. Maybe if you where a bit more patient and polite people would be more willing to assist you with your problems.
4. Regarding your problem: You are exceeding the limitations of the server. You must edit your source code and re-compile the server in order for it to be able to have health values exceeding two billion.
i can compile but how edit source code?

Please Help Me :'0
 
Last edited by a moderator:
Editing the source code is just like editing the lua scripts, but you have to compile when you are finished with your edits. Of course, first you need to find the source for your distribution.
 
There are a few files you must edit. You could hire a programer like @Fallen to do it for you or maybe @Evil Hero wants to show you how to do it. I don't have the required knowledge to achieve what you need.
 
You have to change something in your database therefore, atm health is stored in signed "int" which is stored as 4 bytes (max signed: -2147483648 / 2147483647)
You can either change it to an unsigned int (max unsigned: 4294967295) or you can change it to a bigint (signed: -9223372036854775808 / 9223372036854775807) (unsigned: 18446744073709551615)
 
You have to change something in your database therefore, atm health is stored in signed "int" which is stored as 4 bytes (max signed: -2147483648 / 2147483647)
You can either change it to an unsigned int (max unsigned: 4294967295) or you can change it to a bigint (signed: -9223372036854775808 / 9223372036854775807) (unsigned: 18446744073709551615)
How i make that man please help me and if you want me to pay for you i can pay.. and should i do that in players.cpp and players.h or in mysql database? please it's first time to do this
 
go into phpmyadmin.

players table:
select structure and you'll see this.
hp1.png


hit edit in the health / healthmax row.
looks like this now:
hp2.png


change it to:
hp3.png


do the same with healthmax aswell then.
 
Back
Top