Gamemode isn't saving stats (****** & Kush's tutorial)
#3

you can use mysql or sqlite and for solution here you go

Код:
public OnPlayerConnect(playerid)
{
	if(fexist(UserPath(playerid)))
	{
		new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
	    GetPlayerName(playerid, pname, sizeof(pname));
	    format(string, sizeof(string), "%s has joined the server", pname);
	    SendClientMessageToAll(0xAAAAAAAA, string);
	    
		INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
  		ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
	}
	else
	{
 		ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
	}
	return 1;
}
replace this with your one
Код:
//Edited
LoadUser_%s
to
LoadUser_data
Reply


Messages In This Thread
Gamemode isn't saving stats (****** & Kush's tutorial) - by PlayHard - 03.05.2018, 21:28
Re: Gamemode isn't saving stats (****** & Kush's tutorial) - by Logic_ - 04.05.2018, 05:54
Re: Gamemode isn't saving stats (****** & Kush's tutorial) - by CrystalGamer - 04.05.2018, 10:49
Re: Gamemode isn't saving stats (****** & Kush's tutorial) - by PlayHard - 04.05.2018, 21:06

Forum Jump:


Users browsing this thread: 1 Guest(s)