SA-MP Forums Archive
[HELP] Long and short names. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Long and short names. (/showthread.php?tid=111551)



[HELP] Long and short names. - kukars22 - 02.12.2009

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.


Re: [HELP] Long and short names. - DeathOnaStick - 02.12.2009

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


Re: [HELP] Long and short names. - dice7 - 02.12.2009

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


Re: [HELP] Long and short names. - kukars22 - 02.12.2009

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;
	}



Re: [HELP] Long and short names. - kukars22 - 03.12.2009

So anyone knows?