[Ajuda] DOF2 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] DOF2 (
/showthread.php?tid=636985)
DOF2 -
TheCrazyy - 06.07.2017
Galera ,to comeзando um sistema de salvamento sу que eu queria saber como faзo isso.
Verifica se o arquivo existe(DOF2_FileExists) se n existe >
Cria o arquivo Locais e dentro do arquivo
Locais>>
>>
precisa conter >
Local1 = 100
Local2 = 150
Local3 = 300
e depois tenho q pegar um arquivo por vez, se alguйm puder me dar um exemplo ja ajuda muito
Obrigado!
Re: DOF2 -
IlanZ - 06.07.2017
Nгo sei se entendi direito, mais ta aн
PHP код:
if(DOF2_FileExists(file))
{
//...
}else{
DOF2_CreateFile(...);
DOF2_SetInt("Local1", 100);
DOF2_SetInt("Local2", 150);
DOF2_SetInt("Local3", 200);
DOF2_SaveFile();
}
// Uso
format(string, sizeof(string), "Local 1: %d", DOF2_GetInt(file,"Local1"));
SendClientMessage(playerid, -1, string);
Respuesta: DOF2 -
TheCrazyy - 06.07.2017
IlanZ Obrigado!