Raised This Month: $ Target: $400
 0% 

Precaching and playing sound from ini


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 07-22-2011 , 01:13   Re: Precaching and playing sound from ini
Reply With Quote #1

Sorry it was mean't to show the path abit clearly. I don't have quotes around it.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-22-2011 , 09:08   Re: Precaching and playing sound from ini
Reply With Quote #2

Quote:
Originally Posted by bibu View Post
Sorry it was mean't to show the path abit clearly. I don't have quotes around it.
Try it now.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-23-2011 , 06:53   Re: Precaching and playing sound from ini
Reply With Quote #3

Ok, it works fine, though it still says that "song" is never used. Why?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-23-2011 , 08:14   Re: Precaching and playing sound from ini
Reply With Quote #4

Quote:
Originally Posted by bibu View Post
Ok, it works fine, though it still says that "song" is never used. Why?
Because it isn't used, if you just create it and assign it to a value, that doesn't mean you use it.
__________________
Hunter-Digital is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-23-2011 , 10:30   Re: Precaching and playing sound from ini
Reply With Quote #5

So how can I get rid off this error then?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-23-2011 , 10:38   Re: Precaching and playing sound from ini
Reply With Quote #6

Quote:
Originally Posted by bibu View Post
So how can I get rid off this error then?
How about thinking ?
Seriously, you post too much stuff that comes down to common sense... but to save you the possible headache, just remove the damn unused variable.
__________________
Hunter-Digital is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-23-2011 , 10:39   Re: Precaching and playing sound from ini
Reply With Quote #7

Helllloooo??

PHP Code:
new temp[sizeof(song[]) + 1
Hi.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-23-2011 , 10:40   Re: Precaching and playing sound from ini
Reply With Quote #8

sizeof is a compiler directive, it doesn't use the variable, it just reads it's size and prints it in the code.

EDIT: I looked at the code, you can just use the other variables available for that, you don't need to create a useless variable and that's what the compiler is also saying, just use songdir or songdir2.
__________________

Last edited by Hunter-Digital; 07-23-2011 at 10:42.
Hunter-Digital 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:58.


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