SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 12/05/2018, 09:35 AM   #801
DusanInfinity
Big Clucker
 
Join Date: Jun 2015
Location: Serbia
Posts: 120
Reputation: 0
Default Re: weapon-config.inc - Damage system with many features

I only use SetPlayerHealth(playerid, 0); in the gamemode and i get that error.

And yes, in this FS, that weaponid is defined - #define WEAPON_UNKNOWN 55
__________________
DusanInfinity is offline   Reply With Quote
Old 15/05/2018, 12:26 PM   #802
MustangV10
Huge Clucker
 
Join Date: Dec 2011
Posts: 247
Reputation: 11
Default Re: weapon-config.inc - Damage system with many features

What would be the best way to create spawn protection for a player with this include? My previous SetPlayerHealth approach is void with this include enabled.
MustangV10 is offline   Reply With Quote
Old 15/05/2018, 06:23 PM   #803
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 861
Reputation: 71
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by MustangV10 View Post
What would be the best way to create spawn protection for a player with this include? My previous SetPlayerHealth approach is void with this include enabled.
Just have a variable or a timer and on OnPlayerDamage do something like this.

Code:
if(SpawnProtection[playerid] >= 1) return 0;
__________________
Jeroen52 is offline   Reply With Quote
Old 16/05/2018, 04:01 AM   #804
Dice_
Huge Clucker
 
Dice_'s Avatar
 
Join Date: Sep 2015
Location: Indonesia
Posts: 491
Reputation: 56
Default Re: weapon-config.inc - Damage system with many features

How do I modify health bar color with this include?
__________________
Dice_ is offline   Reply With Quote
Old 17/05/2018, 08:27 PM   #805
PurmeX
Little Clucker
 
Join Date: Apr 2018
Posts: 4
Reputation: 0
Default Re: weapon-config.inc - Damage system with many features

(6060) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicle")
(6079) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicleEx")
(6097) : warning 201: redefinition of constant/macro (symbol "CreateVehicle")
(6207) : warning 201: redefinition of constant/macro (symbol "DestroyVehicle")
(6457) : error 025: function heading differs from prototype
(645 : error 021: symbol already defined: "IsPlayerSpawned"
(27123) : error 021: symbol already defined: "OnPlayerTakeDamage"
(30072) : error 021: symbol already defined: "OnPlayerGiveDamage"

Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Help
PurmeX is offline   Reply With Quote
Old 17/05/2018, 08:51 PM   #806
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 861
Reputation: 71
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by PurmeX View Post
(6060) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicle")
(6079) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicleEx")
(6097) : warning 201: redefinition of constant/macro (symbol "CreateVehicle")
(6207) : warning 201: redefinition of constant/macro (symbol "DestroyVehicle")
(6457) : error 025: function heading differs from prototype
(645 : error 021: symbol already defined: "IsPlayerSpawned"
(27123) : error 021: symbol already defined: "OnPlayerTakeDamage"
(30072) : error 021: symbol already defined: "OnPlayerGiveDamage"

Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Help
What is your include priority?
__________________
Jeroen52 is offline   Reply With Quote
Old 17/05/2018, 09:25 PM   #807
PurmeX
Little Clucker
 
Join Date: Apr 2018
Posts: 4
Reputation: 0
Default Re: weapon-config.inc - Damage system with many features

#include <a_samp>
#include <mysql>
#include <Pawn.CMD>
#include <sscanf2>
#include <streamer>
#include <foreach>
#include <regex>
#include <a_http>
#include <progress>
#include <mSelection>
#include <ColAndreas>
#include <whirlpool>


I have only this
PurmeX is offline   Reply With Quote
Old 17/05/2018, 09:42 PM   #808
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 861
Reputation: 71
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by PurmeX View Post
#include <a_samp>
#include <mysql>
#include <Pawn.CMD>
#include <sscanf2>
#include <streamer>
#include <foreach>
#include <regex>
#include <a_http>
#include <progress>
#include <mSelection>
#include <ColAndreas>
#include <whirlpool>


I have only this
Where is weapon-config on that list?
__________________
Jeroen52 is offline   Reply With Quote
Old 17/05/2018, 09:59 PM   #809
Kaperstone
High-roller
 
Kaperstone's Avatar
 
Join Date: May 2011
Location: Russia
Posts: 3,357
Reputation: 822
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by f0Re3t View Post
since many users want a return, then I will return it!
at the moment, a fork is created, but the new version will be filled in later
the update will be available here - https://github.com/f0Re3t/samp-weapon-config
Will you be updating your fork?
__________________
Kaperstone is offline   Reply With Quote
Old 18/05/2018, 03:57 AM   #810
f0Re3t
Little Clucker
 
Join Date: Aug 2015
Posts: 30
Reputation: 3
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by Kaperstone View Post
Will you be updating your fork?
at the moment I'm working on my own damage system, to fix an uncountable number of bugs of this includ is very expensive
f0Re3t 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 01:01 PM
[FilterScript] New Weapon Damage System [0.3z] RenSoprano Filterscripts 6 17/01/2014 06:03 AM
[FilterScript] Weapon damage system [v1.0] Darnell Filterscripts 74 21/10/2013 08:53 PM
[FilterScript] Weapon Damage System Donicans Filterscripts 14 06/11/2012 01:22 PM
[FilterScript] Realistic Weapon Damage And Death System [V1.0][New Cool FS] Nirzor Filterscripts 6 08/08/2012 05:34 AM


All times are GMT. The time now is 04:06 AM.


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