[Pawn] Loading .ini files - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] Loading .ini files (/showthread.php?tid=1493) |
Loading .ini files - [bC].Thef - 2021-01-04 Hello there! I am working on House System and i am using ini to store data. The problem is, that the data does not load. Code: #define PATH3 "/Houses/%s.ini" Each of 307 houses is printed, so it looks like file name is loading correctly, but not?HI[houseid][hHouseOwned]. Because in the file,?HI[houseid][hHouseOwned] = 666, but it prints 0 wich is not correct. Code: House: 0 / HouseOwned = 0 What am i doing bad? RE: Loading .ini files - Pinch - 2021-01-05 This might sound silly but leave only INI_Function(s) inside of the callback, do the fexist outside of it (inside the first loop). I think I had similar issues where only INI_F were executed in a _data callbacks EDIT: And are you sure that your houses have [data] as a header of each INI file? RE: Loading .ini files - [bC].Thef - 2021-01-12 (2021-01-05, 09:08 AM)Pinch Wrote: This might sound silly but leave only INI_Function(s) inside of the callback, do the fexist outside of it (inside the first loop). Hello, thanks for you answer. The problem was really that i have to use other functions outside of the callback. And yes, having [data] in every ini. Working fine now :) RE: Loading .ini files - Pinch - 2021-01-12 No problem, I've reported the bug, should've done it before, sorry :') |