Please Help, New Plugin for headshot sounds
Im Trying to make a plugin that instead of just playing the same file over and over when you get a headshot, it randomly pics one so it brings out some fun to the plain old repetitive boringness and has an easy ini file to update to add more sounds or takeaway in the future. Im stuck in a few areas of this however These are some errors i get
Code:
/home/groups/amxmodx/tmp3/text7K5hPl.sma(53) : warning 213: tag mismatchThen on line 56 57 and 58 i dont kno how to rewrite those any other way. .but it could be cuz there values arent finished yet I also have no clue on how to finish off the list to have the randoms to choose from and how to randomly pic them once the list is done ALOT of the code is from the headshot_delux, loadingsongsadvance and hlmp Any help on how to fix any parts up and/or referance/tutorial sites to learn up on (besides the defalt basic documentation) will be greatly appreciated, Thanks in advance Code:
#include <amxmodx> |
Re: Please Help, New Plugin for headshot sounds
here you go , there was a problem with the way you used random, random only has 1 paramter (max). I beleive it starts at 0 . on line 65 and 66 the arrays wernt indexed properly or something . Note i onlygot it to compile the rest is up to you :wink:
Code:
|
Re: Please Help, New Plugin for headshot sounds
First of all, use random_num(0,20) instead of random.
But i can't help you with ini files. |
Re: Please Help, New Plugin for headshot sounds
well yes if he was looking to generate a random number between a certain number and another you could use
Code:
Code:
|
Re: Please Help, New Plugin for headshot sounds
Thank You, The Specialist and dutchmeat so just the hard parts left :)
|
Re: Please Help, New Plugin for headshot sounds
You're welcome (this is the part where i start whining for karma ;), but i'll leave it be.)
|
Re: Please Help, New Plugin for headshot sounds
register the event like this
Code:
register_event("DeathMsg","head_shot","a","3=1") |
Re: Please Help, New Plugin for headshot sounds
cool so the 3=1 is basicly param3 eqipils true so itll go to the head_shot only when thats true? Thanks :) (and can a new user do karma? dunno if i did it right >_<)
|
Re: Please Help, New Plugin for headshot sounds
Quote:
|
Re: Please Help, New Plugin for headshot sounds
so if 20 is max it will only generate to number 19? :|
|
| All times are GMT -4. The time now is 06:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.