Thank you very much.
Everything is working fine.
Can you help to make this function?
I want the path to every sound, to write to a file in a new line of ...
can help to make this function?
So I wrote to connect to the file:
Quote:
public plugin_init()
{
register_plugin("Loading Sound", "1.5", "Sutar")
new dirname[110], filename[125], string[192]
get_configsdir(dirname, 109)
format(filename, 124, "%s/sound.ini", dirname)
new file = fopen(filename, "rt")
}
|
But how to make "soundlist" includes all addresses are sounds that are in the file "sound.ini"?
Example:
The content of the file "sound.ini"
Quote:
sound/loading/sound_1
sound/loading/sound_2
sound/loading/sound_3
|
In the plug-in will be read and the variable "soundlist" will be:
Quote:
soundlist[][] = {
"sound/loading/sound_1",
"sound/loading/sound_2",
"sound/loading/sound_3"
}
|