Login problem
#1

I edited smth in the gamemod and now when i enter on the server it says that i don't have an account and in the scriptfiles the file with my name exists.
The code of OnPlayerRequestClass is
Код:
public OnPlayerRequestClass(playerid, classid)
{
	PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
	PlayerInfo[playerid][pModel] = Peds[classid][0];

	if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
	{
		ClearChatbox(playerid, 10);
		SendClientMessage(playerid, COLOR_GREEN, " ~ Welcome to ArenaGames Roleplay!");
		SendClientMessage(playerid, COLOR_YELLOW2, " ");
		SendClientMessage(playerid, COLOR_YELLOW2, " ");
		SendClientMessage(playerid, COLOR_YELLOW2, " ");
		SendClientMessage(playerid, COLOR_YELLOW2, " ");
		SendClientMessage(playerid, COLOR_YELLOW2, " ");
		SendClientMessage(playerid, COLOR_YELLOW2, " ");
		if (gPlayerAccount[playerid] != 0)
		{
			new loginstring[128];
			new loginname[64];
			GetPlayerName(playerid,loginname,sizeof(loginname));
			format(loginstring,sizeof(loginstring),"Welcome, %s\nThat nick is registered.\nYou can now login:",loginname);
			ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit");
		}
		else
		{
			gPlayerAccount[playerid] = 0;
 			new regstring[128];
			new regname[64];
			GetPlayerName(playerid,regname,sizeof(regname));
			format(regstring,sizeof(regstring),"Welcome, %s\nYou dont have an account.\nPlease register:",regname);
			ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",regstring,"Register","Exit");
		}
		//PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
		PlayerInfo[playerid][pModel] = Peds[classid][0];
		SetPlayerTeamFromClass(playerid,classid);
	}
	else SpawnPlayer(playerid);
	return false;
I don't know how to fix that.
Reply
#2

try deleting your file in the scriptfiles and then make a new account.
Reply
#3

I just happened is because the name does not need to pass the 12 characters is going to have there gtarp gamemode tutorial how to increase your characters
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)