I tested your code but i got a warrning message while complie the plugin in this line:
PHP Code:
fprintf(iFilePointer, "%a^n", ArrayGetStringHandle(g_aFileContents, i))
I changed g_aFileContents to aArray but i get this error and the file rewrite as empty without store the data.
Quote:
L 02/12/2022 - 03:26:16: Invalid index 3 (count: 3)
L 02/12/2022 - 03:26:16: [AMXX] Displaying debug trace (plugin "VipSystem.amxx", version "1.0.3")
L 02/12/2022 - 03:26:16: [AMXX] Run time error 10: native error (native "ArrayGetStringHandle")
L 02/12/2022 - 03:26:16: [AMXX] [0] VIPSystem.sma::ReloadFile (line 494)
L 02/12/2022 - 03:26:16: [AMXX] [1] VIPSystem.sma::plugin_init (line 96)
|
__________________