[Ajuda] argument type mismatch
#5

Quote:
Originally Posted by HaRdiiZin
Посмотреть сообщение
PHP код:

public OnPlayerDisconnect(playerid)
{
    
DOF2_SetInt(arquivo"pX"Player[playerid][pX]);
    
DOF2_SetInt(arquivo"pY"Player[playerid][pY]);
    
DOF2_SetInt(arquivo"pZ"Player[playerid][pZ]);
    return 
1;


Код:
public OnPlayerDisconnect(playerid)
{
    new arquivo[40], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, 32);
    GetPlayerPos(playerid, pX, pY, pZ);
    format(arquivo, 40, "Contas/%s.ini", name);
	if(DOF2_FileExists(arquivo))
	{
		Player[playerid][Dinheiro] = GetPlayerMoney(playerid);
		DOF2_SetInt(arquivo, "Senha", Player[playerid][Senha]);
		DOF2_SetInt(arquivo, "Matou", Player[playerid][Matou]);
		DOF2_SetInt(arquivo, "Morreu", Player[playerid][Morreu]); 
		DOF2_SetInt(arquivo, "Dinheiro", Player[playerid][Dinheiro]);
		DOF2_SetInt(arquivo, "pX", Player[playerid][pX]);
		DOF2_SetInt(arquivo, "pY", Player[playerid][pY]);
		DOF2_SetInt(arquivo, "pZ", Player[playerid][pZ]);
		DOF2_SaveFile();
	}
	return 1;
}
nгo funcionou :/
Reply


Messages In This Thread
argument type mismatch - by iTouchS - 09.02.2016, 21:09
Re: argument type mismatch - by Joron - 09.02.2016, 21:11
Re: argument type mismatch - by iTouchS - 09.02.2016, 21:14
Re: argument type mismatch - by HaRdiiZin - 09.02.2016, 21:14
Re: argument type mismatch - by iTouchS - 09.02.2016, 21:18
Re: argument type mismatch - by RodrigoMSR - 09.02.2016, 21:30
Re: argument type mismatch - by iTouchS - 09.02.2016, 21:34
Re: argument type mismatch - by hlgamesbr - 09.02.2016, 21:37
Re: argument type mismatch - by HaRdiiZin - 09.02.2016, 21:39
Re: argument type mismatch - by iTouchS - 09.02.2016, 21:55

Forum Jump:


Users browsing this thread: 1 Guest(s)