Raised This Month: $ Target: $400
 0% 

Problem with RS


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hh2
AlliedModders Donor
Join Date: Sep 2010
Old 01-10-2011 , 15:01   Problem with RS
Reply With Quote #1

Hi, I created me roundsound and i have a problem.
Once you play the sounds, not once, found in the logs error and i use debug.
Info from debug:
Code:
L 01/10/2011 - 5:20:31 p.m.: [AMXX] Displaying debug trace (plugin "roundsound.amxx)
 L 01/10/2011 - 5:20:31 p.m.: [AMXX] Run time error 4: index out of bounds
 L 01/10/2011 - 5:20:31 p.m.: [AMXX] [0] roundsound.sma: plugin_precache (line 38)
Line 38:
Code:
precache_sound (sounds_t [i]);
Fragment code:
PHP Code:
new const sounds_ct [] [] = {
 
"sound/1-10.mp3"
 "sound/2-10.mp3"
 "sound/3-10.mp3"
 "sound/4-10.mp3"
 "sound/5-10.mp3"
 
}

 new const 
sounds_t [] [] = {
 
"sound/6-10.mp3"
 "sound/7-10.mp3"
 "sound/8-10.mp3"
 "sound/9-10.mp3"
 "sound/10-10.mp3"
 
}

 Public 
plugin_precache ()
 {
 new 
iu;

 for (
0<sizeof sounds_ct+ +)
 {
 
precache_generic (sounds_ct [i]);
 
precache_sound (sounds_ct [i]);
 }
 for (
0<sizeof sounds_t+ +)
 {
 
precache_generic (sounds_t [u]);
 
precache_sound (sounds_t [i]);
 }
 } 
Please, help me, if they have any information needed, please write.
hh2 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 02:09.


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