05.05.2018, 13:48
I wanna save player inventory (FS link: https://pastebin.com/mb0UeWS7) with DOF2 using this code:
But I don't know where can I put this. I tried to read some tutorials but I didn't understand. Does anybody know how to use DOF2 in this FS (https://pastebin.com/mb0UeWS7)?
Thank you...
Код:
new LoadInv[24]; new LoadInvQuant[24]; new LoadInvArmour[24]; for(new t=0; t < 15; t++) { format(LoadInv, sizeof(LoadInv), "Slot%d", t); format(LoadInvQuant, sizeof(LoadInvQuant), "Slot%dQuant", t); format(LoadInvArmour, sizeof(LoadInvArmour), "Slot%dArmour", t); DOF2_SetInt(RENAME_WITH_ACCOUNT_SAVE_FILE, LoadInv, pInventory[playerid][invSlot][t]); DOF2_SetInt(RENAME_WITH_ACCOUNT_SAVE_FILE, LoadInvQuant, pInventory[playerid][invSlotAmount][t]); DOF2_SetFloat(RENAME_WITH_ACCOUNT_SAVE_FILE, LoadInvArmour, pInventory[playerid][invArmourStatus][t]); DOF2_SaveFile(); }
Thank you...