Register half name in mySQL
#2

Code:
..... VALUES ('%e', '%e', '%e', '%e', 0,'%d')", name[playerid], ......
That in the red is your problem. You are accessing the array from a given index, in this case: player's id, which is zero. So it will return everything after the first character.
simply change name[playerid] to name.

Edit: Also I would suggest to lower the size of name from 300 to MAX_PLAYER_NAME which by default is 24.
Reply


Messages In This Thread
Register half name in mySQL - by DerickClark - 24.03.2019, 15:32
Re: Register half name in mySQL - by bgedition - 24.03.2019, 15:47
Re: Register half name in mySQL - by DerickClark - 24.03.2019, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)