24.03.2014, 22:19
Vei, to quebrando a cabeзa aqui com esse salvamento , mas ele sу cria o arquivo. Nгo cria os salvamentos dentro do arquivo.
@RESOLVIDO, ESKECI DO DOF2_SaveFile(); HU3
PHP код:
public SalvarConstrucao(idx)
{
new string[256];
format(string,sizeof(string),"Construcao/%d.ini",idx);
if(!fexist(string))
{
DOF2_CreateFile(string);
}
DOF2_SetInt(string,"Modelo",ConstrucaoInf[idx][fModelo]);
DOF2_SetFloat(string,"X",ConstrucaoInf[idx][fX]);
DOF2_SetFloat(string,"Y",ConstrucaoInf[idx][fY]);
DOF2_SetFloat(string,"Z",ConstrucaoInf[idx][fZ]);
DOF2_SetFloat(string,"RX",ConstrucaoInf[idx][fRX]);
DOF2_SetFloat(string,"RY",ConstrucaoInf[idx][fRY]);
DOF2_SetFloat(string,"RZ",ConstrucaoInf[idx][fRZ]);
DOF2_SetInt(string,"vID",ConstrucaoInf[idx][fvID]);
DOF2_SetInt(string,"Int",ConstrucaoInf[idx][fInt]);
return 1;
}
@RESOLVIDO, ESKECI DO DOF2_SaveFile(); HU3