[Ajuda] Setar informaзoes do player ao logar
#5

Quote:
Originally Posted by IgorLuiz
Посмотреть сообщение
muda esse stock para essa

Код:
 SetarPlayer(playerid)
{

	new String[256], name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, 32);
	format(String, 40, "Contas/%s.ini", name);

    GetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
    GetPlayerMoney(playerid, PlayerInfo[playerid][pDinheiro]);

   	PlayerInfo[playerid][pScore] = DOF2_GetInt(String,"Level");
	PlayerInfo[playerid][pDinheiro] = DOF2_GetInt(String,"Dinheiro");
	PlayerInfo[playerid][pLogou] = DOF2_GetInt(String, "Logou");
	PlayerInfo[playerid][pMatou] = DOF2_GetInt(String, "Matou");
	PlayerInfo[playerid][pMorreu] = DOF2_GetInt(String, "Morreu");

	DOF2_SaveFile();
	return 1;
}
Porque vc cria uma string com 256 cйlulas e depois formata ela com sу 40 ? O.o
Reply


Messages In This Thread
Setar informaзoes do player ao logar - by cicinho - 14.06.2015, 18:03
Re: Setar informaзoes do player ao logar - by IgorLuiz - 14.06.2015, 18:54
AW: Re: Setar informaзoes do player ao logar - by cicinho - 14.06.2015, 19:20
Re: AW: Re: Setar informaзoes do player ao logar - by IgorLuiz - 14.06.2015, 19:35
Re: AW: Re: Setar informaзoes do player ao logar - by Cleyson - 14.06.2015, 19:52
Re: AW: Re: Setar informaзoes do player ao logar - by IgorLuiz - 14.06.2015, 19:57
Re: Setar informaзoes do player ao logar - by Cleyson - 14.06.2015, 20:24
AW: Setar informaзoes do player ao logar - by cicinho - 14.06.2015, 22:09

Forum Jump:


Users browsing this thread: 1 Guest(s)