• 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!

OTClient Number 0 on otcv8

bpm91

Advanced OT User
Joined
May 23, 2019
Messages
1,046
Solutions
7
Reaction score
180
Location
Brazil
YouTube
caruniawikibr
Does anyone know if they have ever experienced this problem in otcv8, where when the account above is created with number 0, it is not accepted by the client, and it understands it as an incorrect account name or password?

I actually don't know if this problem would be otcv8 but maybe it could be the site when accepting the number 0 at the beginning of the account
 
Last edited:
That's not client issue, that's how numbers work. If you are using account NUMBER as a login and save one as a NUMBER in database then any number starting with 0 is that number except the 0, ie. 0123456 is 123456.
 
That's not client issue, that's how numbers work. If you are using account NUMBER as a login and save one as a NUMBER in database then any number starting with 0 is that number except the 0, ie. 0123456 is 123456.
Greatest programmer that ever lived
Get some sleep bro you got better things to do at 3 am im sure
 
The number is not the same as the string.
If you put 0123 as a number it will trim the 0 and return 123
If you put 0123 as a string it will be still 123
:)
 
My sleeping schedule is fucked since I had bad case of the flu recently and couldn't sleep :(
Thanks for your concern 🥰
OTland flu is getting to the best of us
Can bpm post solution since he fixed it? I have same problems with NULL its 4 characters yet its empty!!!
💀🤧🤧
 
Last edited:
OTland flu is getting to the best of us
Can bpm post solution since he fixed it? I have same problems with NULL its 4 characters yet its empty!!!
💀🤧🤧
I must have been affected, I would have to change the string format in the protocol code

LUA:
uint32_t accountNumber = msg.get<uint32_t>();
    if (accountNumber == 0) {
        disconnectClient("Invalid account number.", version);
        return;
    }

but I ended up not being successful in that.
 

Similar threads

Back
Top