[AJUDA] Passar de Dini para Dof2 -
Mercurio - 23.06.2012
Olб, alguйm poderia me ajudar com esse cуdigo salvo em dini_int? Eu queria por ele no sistema de salvamento Dof2...
Em OnPlayerSpawn:
pawn Код:
format( aFile, sizeof( aFile ), DIRETORIO, nome( playerid ) );
if( dini_Int( aFile, "IssO") == 1 )
{
SetPlayerAttachedObject(playerid,5, 19079, 1, 0.319503, -0.089340, -0.185576, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
Info2[playerid][IssO] = true;
}
Quando compra o objeto:
pawn Код:
Info2[playerid][IssO] = true;
new aFile[128];
format( aFile, sizeof( aFile ), DIRETORIO, nome( playerid ) );
dini_IntSet( aFile, "IssO", 1 );
return 1;
}
Alguйm poderia me ajudar?
Sou grato desde jб *-*
Re: [AJUDA] Passar de Dini para Dof2 -
.FuneraL. - 23.06.2012
pawn Код:
DOF2_GetInt(aFile, "Isso");
DOF2_SetInt(aFile, "Isso", 1);
Acho eu que seria isso com esses aн.
Re: [AJUDA] Passar de Dini para Dof2 - rjjj - 23.06.2012
Converti para vocк

:
pawn Код:
format(aFile, sizeof(aFile), DIRETORIO, nome(playerid));
if(DOF2_GetInt(aFile, "IssO") == 1)
{
SetPlayerAttachedObject(playerid, 5, 19079, 1, 0.319503, -0.089340, -0.185576, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
Info2[playerid][IssO] = true;
}
pawn Код:
Info2[playerid][IssO] = true;
new aFile[128];
format(aFile, sizeof(aFile), DIRETORIO, nome(playerid));
DOF2_SetInt(aFile, "IssO", 1);
DOF2_SaveFile();
return 1;
}
Espero ter ajudado

.
Re: [AJUDA] Passar de Dini para Dof2 -
.FuneraL. - 23.06.2012
Quote:
Originally Posted by rjjj
Converti para vocк  :
pawn Код:
format(aFile, sizeof(aFile), DIRETORIO, nome(playerid)); if(DOF2_GetInt(aFile, "IssO") == 1) { SetPlayerAttachedObject(playerid, 5, 19079, 1, 0.319503, -0.089340, -0.185576, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000); Info2[playerid][IssO] = true; }
pawn Код:
Info2[playerid][IssO] = true; new aFile[128]; format(aFile, sizeof(aFile), DIRETORIO, nome(playerid)); DOF2_SetInt(aFile, "IssO", 1); DOF2_SaveFile(); return 1; }
Espero ter ajudado  .
|
Verdade. esqueci do SaveFile ao Final =|
Re: [AJUDA] Passar de Dini para Dof2 -
cJMaster_ - 23.06.2012
pawn Код:
dini_Exists -> DOF2_FileExists
dini_Create -> DOF2_CreateFile
dini_Remove -> DOF2_RemoveFile
dini_IntSet -> DOF2_SetInt
dini_Set -> DOF2_SetString
dini_FloatSet -> DOF2_SetFloat
dini_BoolSet -> DOF2_SetBool
dini_Int -> DOF2_GetInt
dini_Get -> DOF2_GetString
dini_Float -> DOF2_GetFloat
dini_Bool -> DOF2_GetBool,
Ex De Uso: DOF2_SetInt("extensao.arquivo", "tag", valor);
Isso irб ajuda - lo.
Re: [AJUDA] Passar de Dini para Dof2 -
Mandrack_FreeZe - 23.06.2012
Cara te do um conselho: Usa Fini que й mais simples tem um tuto por ai depois posto o link ja vo ter q sair *-*
Re: [AJUDA] Passar de Dini para Dof2 -
Mercurio - 23.06.2012
Quote:
Originally Posted by rjjj
Converti para vocк  :
pawn Код:
format(aFile, sizeof(aFile), DIRETORIO, nome(playerid)); if(DOF2_GetInt(aFile, "IssO") == 1) { SetPlayerAttachedObject(playerid, 5, 19079, 1, 0.319503, -0.089340, -0.185576, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000); Info2[playerid][IssO] = true; }
pawn Код:
Info2[playerid][IssO] = true; new aFile[128]; format(aFile, sizeof(aFile), DIRETORIO, nome(playerid)); DOF2_SetInt(aFile, "IssO", 1); DOF2_SaveFile(); return 1; }
Espero ter ajudado  .
|
Obrigado ajudou muito =D