SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

Reply
 
Thread Tools Display Modes
Old 16/03/2018, 02:44 PM   #1
waysemir
Little Clucker
 
Join Date: Oct 2014
Posts: 9
Reputation: 0
Default SA-MP 0.3 DL AND 0.3.8 weapon-config include problem

SA-MP 0.3 DL AND 0.3.8 weapon-config include working but health is not down and i write /sethp 0 50 but health is not change
note: im turkish, my english is very bad guys so sorry.
waysemir is offline   Reply With Quote
Old 17/03/2018, 08:50 AM   #2
Cypress
Gangsta
 
Cypress's Avatar
 
Join Date: Dec 2009
Location: Germany
Posts: 950
Reputation: 125
Default Re: SA-MP 0.3 DL AND 0.3.8 weapon-config include problem

You should be aware that the plugin was never updated for 0.3.7 DL. That means that it is not recommended using a none updated plugins, which can cause further problems like stability issues or crashes and bugs.
Cypress is offline   Reply With Quote
Old 17/03/2018, 06:25 PM   #3
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Posts: 1,382
Reputation: 437
Default Re: SA-MP 0.3 DL AND 0.3.8 weapon-config include problem

Quote:
Originally Posted by Cypress View Post
You should be aware that the plugin was never updated for 0.3.7 DL. That means that it is not recommended using a none updated plugins, which can cause further problems like stability issues or crashes and bugs.
Isn't weapon-config an Include and no Plugin?

From what I know weapon-config doesn't use any functions that were changed/altered in 0.3.7DL or 0.3.8, so it should actually still work as-is.

@OP: Do you use SetPlayerHealth (your command) inside the script where weapon-config is included? Just making sure since that function is hooked by the include.
NaS is offline   Reply With Quote
Old 17/03/2018, 07:46 PM   #4
Max_Andolini
Huge Clucker
 
Max_Andolini's Avatar
 
Join Date: Oct 2013
Posts: 315
Reputation: 34
Default Re: SA-MP 0.3 DL AND 0.3.8 weapon-config include problem

Quote:
Originally Posted by NaS View Post
Isn't weapon-config an Include and no Plugin?

From what I know weapon-config doesn't use any functions that were changed/altered in 0.3.7DL or 0.3.8, so it should actually still work as-is.

@OP: Do you use SetPlayerHealth (your command) inside the script where weapon-config is included? Just making sure since that function is hooked by the include.
Dude SKY plugin changed.
Max_Andolini is offline   Reply With Quote
Old 17/03/2018, 10:41 PM   #5
Cypress
Gangsta
 
Cypress's Avatar
 
Join Date: Dec 2009
Location: Germany
Posts: 950
Reputation: 125
Default Re: SA-MP 0.3 DL AND 0.3.8 weapon-config include problem

Quote:
Originally Posted by Max_Andolini View Post
Dude SKY plugin changed.
Yea, sorry for not declaring about the SKY plugin. The weapon config requires the use of the SKY plugin. It might be working on 0.3.7 DL. Tho on 0.3.8 it required an update of the memory addresses and might still need the same for 0.3.7 DL if not done already.
Cypress is offline   Reply With Quote
Old 19/03/2018, 12:40 AM   #6
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 849
Reputation: 71
Default Re: SA-MP 0.3 DL AND 0.3.8 weapon-config include problem

To fix the textdraws use this patch.

PHP Code:
From 238057774c34dbe652e3ba2fcc9a21aaaf06e374 Mon Sep 17 00:00:00 2001
From
Jeroen de Neef <jeroen52@gmail.com>
DateMon26 Feb 2018 01:30:16 +0100
Subject
: [PATCHThis is a nasty fix for the health bar not updating in
 0.3
-DL.

---
 
weapon-config.inc ++
 
1 file changed2 insertions(+)

diff --git a/weapon-config.inc b/weapon-config.inc
index 76e914c
..ddc1269 100644
--- a/weapon-config.inc
+++ b/weapon-config.inc
@@ -4026,+4026,@@ static UpdateHealthBar(playeridbool:force false)
         
SetPlayerHealth(playerid8000000.0 float(health));
 
         if (
s_HealthBarVisible[playerid] && !s_IsDying[playerid]) {
+            
PlayerTextDrawDestroy(playerids_HealthBarForeground[playerid]);
+            
s_HealthBarForeground[playerid] = PlayerText:INVALID_TEXT_DRAW;
             if (
s_HealthBarForeground[playerid] == PlayerText:INVALID_TEXT_DRAW) {
                 
s_HealthBarForeground[playerid] = CreatePlayerTextDraw(
                     
playerid,
-- 
2.16.2.windows.1 
__________________
Jeroen52 is offline   Reply With Quote
Old 19/03/2018, 12:55 AM   #7
Kar
High-roller
 
Kar's Avatar
 
Join Date: May 2010
Location: Black Asylum
Posts: 3,180
Reputation: 489
Default Re: SA-MP 0.3 DL AND 0.3.8 weapon-config include problem

Why doesn't someone just fork the repo and start updating it lol.
Kar is offline   Reply With Quote
Old 19/03/2018, 01:55 AM   #8
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 849
Reputation: 71
Default Re: SA-MP 0.3 DL AND 0.3.8 weapon-config include problem

Quote:
Originally Posted by Kar View Post
Why doesn't someone just fork the repo and start updating it lol.
Because I'm shit at maintaining [strike]someone else's[/strike] code.
__________________
Jeroen52 is offline   Reply With Quote
Old 19/03/2018, 10:19 AM   #9
Max_Andolini
Huge Clucker
 
Max_Andolini's Avatar
 
Join Date: Oct 2013
Posts: 315
Reputation: 34
Default Re: SA-MP 0.3 DL AND 0.3.8 weapon-config include problem

Weapon Config my forked version 0.3.DL https://github.com/MaxAndolini/samp-weapon-config
SKY Plugin 0.3.DL version http://forum.sa-mp.com/showpost.php?...&postcount=137
Max_Andolini is offline   Reply With Quote
Old 31/03/2018, 04:10 PM   #10
waysemir
Little Clucker
 
Join Date: Oct 2014
Posts: 9
Reputation: 0
Default Re: SA-MP 0.3 DL AND 0.3.8 weapon-config include problem

Quote:
Originally Posted by Max_Andolini View Post
Thanks dude. @Max_Andolini (Reyiz seni hala samp platformunda görmek beni cidden mutlu ediyor, büyük işlere imza atmaya devam ediyorsun. Esen kal adamsın.)
waysemir 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
[Ajuda] Include weapon-config JuninTJF Português/Portuguese 3 06/09/2017 03:07 PM
weapon-config.inc crukk11 Scripting Help 24 20/05/2017 02:51 PM


All times are GMT. The time now is 06:09 PM.


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