Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public sauverPoubelle(const idInfo)
- {
- new fichier[128];
- format(fichier, 128, FICHIER_POUBELLE, idInfo);
- if(!fexist(fichier))
- dini_Create(fichier);
- new i = idInfo;
- dini_IntSet(fichier, "UniqID", InfoPoubelle[i][pUniqID]);
- dini_IntSet(fichier, "PoubID", InfoPoubelle[i][pPoubID]);
- dini_FloatSet(fichier, "SpawnX", InfoPoubelle[i][pSpawnX]);
- dini_FloatSet(fichier, "SpawnY", InfoPoubelle[i][pSpawnY]);
- dini_FloatSet(fichier, "SpawnZ", InfoPoubelle[i][pSpawnZ]);
- dini_FloatSet(fichier, "SpawnA", InfoPoubelle[i][pSpawnA]);
- dini_BoolSet(fichier, "coffre", InfoPoubelle[i][coffre]);
- dini_IntSet(fichier, "slotsCoffre", InfoPoubelle[i][slotsCoffre]);
- if(InfoPoubelle[i][coffre])
- {
- format(fichier, 128, FICHIER_COFFRESB, i);
- if(!fexist(fichier))
- dini_Create(fichier);
- for(new c = 0; c < InfoPoubelle[i][slotsCoffre]; c++)
- {
- format(stringtmp, TAILLE_STRING_CLASSIC, "coffre_slotLibre%d", c);
- dini_BoolSet(fichier, stringtmp, InfoCoffrePoub[i][c][slotLibre]);
- if(!InfoCoffrePoub[i][c][slotLibre])
- {
- format(stringtmp, TAILLE_STRING_CLASSIC, "coffre_nomItem%d", c);
- dini_Set(fichier, stringtmp, InfoCoffrePoub[i][c][nomItem]);
- format(stringtmp, TAILLE_STRING_CLASSIC, "coffre_quantite%d", c);
- dini_IntSet(fichier, stringtmp, InfoCoffrePoub[i][c][quantite]);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment