Raised This Month: $ Target: $400
 0% 

Menuitems from ini


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-07-2012 , 22:38   Re: Menuitems from ini
Reply With Quote #3

Don't use read_file(). Use fopen(), fgets(), and fclose(). See a file tutorial.
You can't use a variable as a case. It must be a constant. To me, it looks like you don't even need a switch. If you just pass the sound name as the "data" parameter in the add menu item function then you can just use that for the command to play the sound.
__________________
fysiks is offline
 



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 15:15.


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