[HELP] Long and short names.
#1

Hello everyone.

I got verry wierd problem in my server.
I got a RolePlay script and a thing is, when I register new account with name like: Mike_Tee everything will be okey and after relog I can normally login without any problems.

Something wierd starts if I take long name like: VIncenzo_Pasterana.
When I connect firstly to server, server asks to register, so I do that, but after relog, server says to register again.

I havent senn something like that before, so Im asking your help.


Regards, Martin.
Reply
#2

Maybe post the register/login code? I guess the problem will be there. Something with the string-declaration.
Reply
#3

The string which you format to then check if the file with the players name exists is to short
Reply
#4

Well I got this under OnPlayerConnect

Код:
new string[MAX_PLAYER_NAME];
And after it it checks

Код:
if(fexist(string))
	{
		gPlayerAccount[playerid] = 1;
		return 1;
	}
	else
	{
		gPlayerAccount[playerid] = 0;
		return 1;
	}
Reply
#5

So anyone knows?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)