22.04.2012, 21:07
Its not a problem with loading, other things load, just the vehicles don't which are under the user stats that load, anyway the parse file code is OnPlayerConnect:
pawn Код:
if(fexist(UserPath(playerid)))
{
new string[156];
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
format(string,sizeof(string), "Welcome to Legendary Generation Roleplay, %s.\n\nIP: %s\n\nThe account you are using is registered, please enter your password to login.", GetPlayerRPName(playerid), plrIP);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"{0049FF}Legendary Generation Roleplay Login", string,"Login","Quit");
}
else
{
new string[156];
format(string,sizeof(string), "Welcome to Legendary Generation Roleplay, %s.\n\nIP:%s\n\nThe account you are using is unregistered, please enter a password to register.", GetPlayerRPName(playerid), plrIP);
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"{0049FF}Legendary Generation Roleplay Register",string,"Register","Quit");
}

