random sounds ===> need help
1 Attachment(s)
I need help on trying to basically understand the random command. I'm still a newbie in this and the help was confusing me. I'm trying to make it so that for the ultimate_sounds plugin plays randomly 3 sounds instead of just the normal "Headshot" sound. Here is what I ADDED to the plugin (if you want to fix the errors yourself by compiling instead of reading this, I uploaded the plugin):
Code:
#define HSSOUNDS 4Code:
}Code:
}on line 66 (error 008: must be a constant expression; assumed zero) on line 297 (error 029: invalid expression, assumed zero) my line 66 was: client_cmd(0,"spk misc/headshot"), and my line 297 was: client_cmd(0,hssounds[ random_num(0,HSSOUNDS-1) ],) like I said I'm a newbie and I'm totally lost -_-' and I'm sorry for making this really long lol but I thought that everything I did was necessary?[/list] |
1 Attachment(s)
This may work..
|
Quote:
|
| All times are GMT -4. The time now is 16:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.