[Ajuda] argument type mismatch
#9

Quote:
Originally Posted by iTouchS
Посмотреть сообщение
Код:
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 :/
Desculpa, fiz sem perceber aushuashuash. Faz um tempinho que nгo uso DOF2... ''DOF2_SetFloat''

Quote:
Originally Posted by iTouchS
Посмотреть сообщение
Funcionou, mais me explica porque ?
O valor da posiзгo й flutuante, e ali eu coloquei como "SetInt" por isso gerou erros. O correto й usar "SetFloat".
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)