Problem with loading .ini
I have a problem when the plugin needs to load times from .ini file. After something, .ini file gets updated, and i see that when i open it...but in-game its not updated, until i change the map...im trying to call that load immediately, but it remains the same...im not that good coder so i tryed 20 ways, this is the last one im using:
PHP Code:
|
Re: Problem with loading .ini
Never use read_file in a loop its deprecated. Other than that please explain better whats happening :D
|
Re: Problem with loading .ini
official_time[index] wont get updated from this code, so its like its not executed at all...on map reload the similar code is called for the same thing, load from .ini file, and it is loading...
but nothing is updated ingame from .ini file, although its been rewritten ingame, and can be seen in .ini |
Re: Problem with loading .ini
Why don't you store everything in a trie or a cellarray ?
Also replace the read_file first then post the new code. |
Re: Problem with loading .ini
its working now. the problem was my stupidy so i accidently didnt stored official_time[ ] somewhere, so it was loading wrong one...anyway thanks for that implementation, i replaced read_file to fopen "r" and fgets
|
| All times are GMT -4. The time now is 12:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.