Help With SetPlayerName
#7

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]);
Reply


Messages In This Thread
Help With SetPlayerName - by Buzzbomb - 03.10.2011, 19:00
Re: Help With SetPlayerName - by [L3th4l] - 03.10.2011, 19:14
Re: Help With SetPlayerName - by Buzzbomb - 03.10.2011, 19:39
Re: Help With SetPlayerName - by Buzzbomb - 03.10.2011, 20:40
Re: Help With SetPlayerName - by [L3th4l] - 03.10.2011, 20:53
Re: Help With SetPlayerName - by Buzzbomb - 03.10.2011, 21:04
Re: Help With SetPlayerName - by [L3th4l] - 03.10.2011, 21:14
Re: Help With SetPlayerName - by knackworst - 03.10.2011, 21:16
Re: Help With SetPlayerName - by Buzzbomb - 03.10.2011, 21:19
Re: Help With SetPlayerName - by [L3th4l] - 03.10.2011, 21:20

Forum Jump:


Users browsing this thread: 1 Guest(s)