Stimpack
/home/groups/amxmodx/tmp3/phpwENvvC.sma(45) : error 035: argument type mismatch (argument 1)
/home/groups/amxmodx/tmp3/phpwENvvC.sma(73) : warning 209: function "stimpack_action" should return a value /home/groups/amxmodx/tmp3/phpwENvvC.sma(78 ) : warning 203: symbol is never used: "Player" This plugin is a replica of the stimpack in starcraft. When you use a stimpack theres a cool starcraft marine sound and it takes 10hp from ya. what it is supposed to do as well is make you go faster and do double the damage. I'm having a little bit of trouble with that. Code:
|
Re: Stimpack
Anyone?
|
Re: Stimpack
Weap is the weapon id, not the weapon name
you would need somehow find the weapon name by the weapon id or make a custom one like write_string("Stim") |
Re: Stimpack
I deceided to make this pluging simpler by just changing the speed of the player when he reaches a certain amount of HP for a certain amount of time.
here is the coding: Code:
I get these errors when I try to compile: /home/groups/amxmodx/tmp3/phpH2eYMc.sma(30) : warning 209: function "Damage_event" should return a value /home/groups/amxmodx/tmp3/phpH2eYMc.sma(30) : error 010: invalid function or declaration /home/groups/amxmodx/tmp3/phpH2eYMc.sma(37) : error 010: invalid function or declaration /home/groups/amxmodx/tmp3/phpH2eYMc.sma(44) : error 010: invalid function or declaration /home/groups/amxmodx/tmp3/phpH2eYMc.sma(50) : warning 213: tag mismatch /home/groups/amxmodx/tmp3/phpH2eYMc.sma(55) : warning 203: symbol is never used: "health" /home/groups/amxmodx/tmp3/phpH2eYMc.sma(55) : warning 203: symbol is never used: "low_health" /home/groups/amxmodx/tmp3/phpH2eYMc.sma(55) : warning 203: symbol is never used: "n_speed" /home/groups/amxmodx/tmp3/phpH2eYMc.sma(55) : warning 203: symbol is never used: "speed" /home/groups/amxmodx/tmp3/phpH2eYMc.sma(55) : warning 203: symbol is never used: "timer" Help? |
Re: Stimpack
I was able to fix all of those problems by deleting the }else{
but I still get some warnings /home/groups/amxmodx/tmp3/phpBHzeKK.sma(31) : warning 217: loose indentation /home/groups/amxmodx/tmp3/phpBHzeKK.sma(32) : warning 213: tag mismatch /home/groups/amxmodx/tmp3/phpBHzeKK.sma(40) : warning 213: tag mismatch /home/groups/amxmodx/tmp3/phpBHzeKK.sma(42) : warning 213: tag mismatch /home/groups/amxmodx/tmp3/phpBHzeKK.sma(50) : warning 213: tag mismatch anyway I could get rid of em? |
Re: Stimpack
I suggest you get familiar with understanding the native. To look in the function wiki to see the how to use the native and what return type or what type of parameter it take.
Ie Floats, Integers. Cause you were mixing up usage where it require floats. Code:
|
Re: Stimpack
Thanks! I got one more problem thought, when someone gets low hp, the sound file starts but never stops, its as if it were looped! anyway i could fix it?
|
Re: Stimpack
OMG, give me my soul back NOW! :(
|
Re: Stimpack
You would have to do execute "stopsound" at the player console
Get the sound length, make a set_task with that length, and execute the "stopsound" after the X seconds I don't know if that is the best way to do it... And I would not do this function at damage_event, 1 bullet = 1 damage event You might flood the user, set a limit, like this message can only show every 10 secs |
Re: Stimpack
as well with this plugin the time part isnt working properly either... like the stim should end at a defined time but instead it keeps going until the weapon is switched.
|
| All times are GMT -4. The time now is 06:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.