Raised This Month: $ Target: $400
 0% 

Download the sounds if they do not have


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sutar
Senior Member
Join Date: Sep 2010
Old 05-12-2012 , 05:51   Re: Download the sounds if they do not have
Reply With Quote #1

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"
}

Last edited by Sutar; 05-12-2012 at 06:09.
Sutar is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode