[Ajuda] DOF2
#1

alguem pode me ajudar com isso? eu tou tentando salvar a sede/fome do jogador mas eu nunca salvei algo em float, nao sei se tou colocando as linhas certas! alguem da uma olhadinha ai pra mim pfv?

Quote:

D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(705) : warning 213: tag mismatch
D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(705) : error 032: array index out of bounds (variable "Player")
D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(722) : warning 213: tag mismatch
D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(722) : error 032: array index out of bounds (variable "Player")
D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(723) : warning 213: tag mismatch
D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(723) : error 032: array index out of bounds (variable "Player")
D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(723) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

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 ), "Sede", Player[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), "Alive Time");
Player[ playerid ][ pSede ] = FloatOF2_GetFloat(GetPlayerArquivo(playerid),"Se de");
SetPlayerScore( playerid, Player[ playerid ][ Score ] );
//SetPlayerSkin(playerid, Player[ playerid ][ Skin ] );

}
return 1;
}

2. deem uma olhada no alive time tbm pfv, no arquivo apareque o tempo certo do alive time, mas quando entro no sv ele zera!
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)