SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 24/10/2018, 02:08 AM   #821
AmirSavand
Big Clucker
 
AmirSavand's Avatar
 
Join Date: Sep 2018
Location: Behind Schedule
Posts: 78
Reputation: 8
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by DeLTi View Post
When the player uses other styles of HUD (GTAV HUD), the health bar will be an obstacle. How to solve it?
You can update the code and remove the health bar textdraw.
__________________

GitHub - Website - Contact

C# - Python - PHP - Angular
Unity 3D - Django - Electron

AmirSavand is offline   Reply With Quote
Old 24/10/2018, 11:13 PM   #822
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,853
Reputation: 610
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by AmirSavand View Post
You can update the code and remove the health bar textdraw.
No sir, removing the textdraw isn't going to resolve anything, it's going to cause confusion.
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Old 06/12/2018, 10:33 PM   #823
BrainDamaged
Big Clucker
 
BrainDamaged's Avatar
 
Join Date: Jun 2016
Posts: 135
Reputation: 1
Default Re: weapon-config.inc - Damage system with many features

Quote:
weapon-config.inc(3119) : warning 219: local variable "err" shadows a variable at a preceding level
weapon-config.inc(3366) : warning 219: local variable "err" shadows a variable at a preceding level

Code:
#include <a_samp>
#include <a_mysql>
#include <callbacks>
#include <cuffs>
#include <zcmd>
#include <sscanf2>
#include <streamer>
#include <kickban>
#include <foreach>
#include <YSI\y_iterate>
#include <mSelection>
#include <mapfix>
#include <OPSP>
#include <AutoMove>
#include <WeaponData>
#include <SKY>
#include <weapon-config>
#include <progress2>
#include <ipcheck>
I don't understand why you're giving such a warning
BrainDamaged is offline   Reply With Quote
Old 06/12/2018, 10:44 PM   #824
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 869
Reputation: 73
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by BrainDamaged View Post
Code:
#include <a_samp>
#include <a_mysql>
#include <callbacks>
#include <cuffs>
#include <zcmd>
#include <sscanf2>
#include <streamer>
#include <kickban>
#include <foreach>
#include <YSI\y_iterate>
#include <mSelection>
#include <mapfix>
#include <OPSP>
#include <AutoMove>
#include <WeaponData>
#include <SKY>
#include <weapon-config>
#include <progress2>
#include <ipcheck>
I don't understand why you're giving such a warning
Because you already have "err" defined somewhere else in the code.
__________________
Jeroen52 is offline   Reply With Quote
Old 07/12/2018, 09:26 AM   #825
[HLF]Southclaw
Godfather
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 5,018
Reputation: 1584
Default Re: weapon-config.inc - Damage system with many features

Package Southclaws/progress2 depends on package Southclaws/samp-logger which declares an error function named `err`. If you run `sampctl package ensure --verbose` it will print out the dependency tree so you can see all leaf dependencies.
__________________
Tools:

Plugins:

Links:

[HLF]Southclaw is offline   Reply With Quote
Old 12/12/2018, 02:40 AM   #826
BrainDamaged
Big Clucker
 
BrainDamaged's Avatar
 
Join Date: Jun 2016
Posts: 135
Reputation: 1
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by [HLF]Southclaw View Post
Package Southclaws/progress2 depends on package Southclaws/samp-logger which declares an error function named `err`. If you run `sampctl package ensure --verbose` it will print out the dependency tree so you can see all leaf dependencies.
When using the plug-in, it encounters a number of problems;
1. If the player remains under the vehicle,
2. if it is breathless under water,
3. If the player starts to burn,
does not lose health
BrainDamaged is offline   Reply With Quote
Old 10/02/2019, 07:44 PM   #827
Chaprnks
Gangsta
 
Chaprnks's Avatar
 
Join Date: Sep 2007
Location: Soviet America
Posts: 762
Reputation: 64
Default Re: weapon-config.inc - Damage system with many features

I've been encountering a dilemma. I've tried this method (weapon-config & the now deleted damage.inc from Gammix). Is there any way to remove the OnPlayerDamage & just use the normal Take/Give damage hooks? Otherwise, I'd have to find out a workable way to hook this new custom callback (seeing as it would be incompatible with hook OnPlayerDamage).

I also noticed that this include seems to mess with the processing of OnPlayerDeath. For some reason it skips all the hooks of OnPlayerDeath & immediately respawns the player; with no death code being processed.
__________________
Chaprnks is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with weapon damage system thanks JessThompson Scripting Help 7 15/07/2014 02:01 PM
[FilterScript] New Weapon Damage System [0.3z] RenSoprano Filterscripts 6 17/01/2014 07:03 AM
[FilterScript] Weapon damage system [v1.0] Darnell Filterscripts 74 21/10/2013 09:53 PM
[FilterScript] Weapon Damage System Donicans Filterscripts 14 06/11/2012 02:22 PM
[FilterScript] Realistic Weapon Damage And Death System [V1.0][New Cool FS] Nirzor Filterscripts 6 08/08/2012 06:34 AM


All times are GMT. The time now is 12:39 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.