03.10.2011, 21:14
I know what you mean, but like I said, you aren't loading the name. Try this:
pawn Код:
PlayerInfo[playerid][pAdminLevel] = dini_Int(file, "AdminLevel");
PlayerInfo[playerid][pJob] = dini_Int(file, "Job");
SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
GivePlayerMoney(playerid, dini_Int(file, "Money"));
SetPlayerHealth(playerid, dini_Int(file, "Health"));
SetPlayerArmour(playerid, dini_Int(file, "Armour"));
strcat(PlayerInfo[playerid][pFirstname], dini_Get(file, "Name")); // Change "Name" to the one in your user file. eg: "Name=Jose"
printf("Name: %s", PlayerInfo[playerid][pFirstname]); // Testing to check if it loaded.
format(string, 128, "You have succesfully logged into your account. %s, Welcome back.", name);
SendClientMessage(playerid, DARKBLUE, string);
SpawnLastSaved(playerid);
PlayerOnline[playerid] = 1;
SetPlayerName(playerid, PlayerInfo[playerid][pFirstname]);