[Ajuda] DOF2
#6

fiz assim:

Quote:

stock SavePlayer(playerid)
{
if(!DOF2_FileExists( GetPlayerArquivo( playerid ) ) )
DOF2_CreateFile(GetPlayerArquivo(playerid));

//DOF2_SetInt( GetPlayerArquivo( playerid ), "Skin", Player[ playerid ][ Skin ] );
DOF2_SetInt( GetPlayerArquivo( playerid ), "Score", Player[ playerid ][ Score ] );
DOF2_SetInt( GetPlayerArquivo( playerid ), "Dinheiro", GetPlayerMoney( playerid ));
DOF2_SetInt( GetPlayerArquivo( playerid ), "Admin", Player[ playerid ][ Admin ] );
DOF2_SetInt( GetPlayerArquivo( playerid ), "AliveTime", Player[playerid][pDTime]);
DOF2_SetInt( GetPlayerArquivo( playerid ), "pSexo", Player[playerid][pSexo]);
DOF2_SetInt( GetPlayerArquivo( playerid ),"pSede", pInfo[playerid][pSede]);

DOF2_SaveFile();
return 1;
}

stock LoadPlayer(playerid)
{
if( DOF2_FileExists( GetPlayerArquivo( playerid ) ) )
{
//Player[ playerid ][ Skin ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Skin" );
Player[ playerid ][ Score ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Score" );
Player[ playerid ][ Dinheiro ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Dinheiro" );
Player[ playerid ][ Admin ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Admin" );
Player[ playerid ][ pDTime ] = DOF2_GetInt( GetPlayerArquivo(playerid), "AliveTime");
Player[ playerid ][ pSexo ] = DOF2_GetInt( GetPlayerArquivo(playerid), "pSexo");
Player[ playerid ][ pSede ] = DOF2_GetInt( GetPlayerArquivo(playerid),"pSede");

SetPlayerScore( playerid, Player[ playerid ][ Score ] );
GivePlayerMoney( playerid, Player[ playerid] [ Dinheiro ] );
//SetPlayerSkin(playerid, Player[ playerid ][ Skin ] );

}
return 1;
}

mas da esse warn:
Quote:

D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(835) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

Reply


Messages In This Thread
DOF2 - by PedroH - 17.07.2017, 01:03
Re: DOF2 - by NathanT - 17.07.2017, 16:17
Respuesta: DOF2 - by OtimoJogo - 17.07.2017, 17:11
Re: DOF2 - by PedroH - 17.07.2017, 17:46
Re: DOF2 - by NathanT - 17.07.2017, 23:14
Re: DOF2 - by PedroH - 18.07.2017, 15:00
Re: DOF2 - by NathanT - 18.07.2017, 17:48
Re: DOF2 - by PedroH - 18.07.2017, 18:10
Re: DOF2 - by NathanT - 18.07.2017, 21:21
Re: DOF2 - by PedroH - 19.07.2017, 00:25

Forum Jump:


Users browsing this thread: 1 Guest(s)