User
Pass
2FA
 
 

Problema plugin VIP

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Counter-Strike: Help zone
Author Message1050
Fr0zeNN

[Technique]



Status: Offline
(since 13-10-2018 00:30)
Joined: 12 Feb 2015
Posts: 688, Topics: 56
Location: Romania

Reputation: 61.8
Votes: 46

     
Post Posted: 06-07-2017, 04:07:58 | Translate post to: ... (Click for more languages)

Am si eu o problema la pluginul vip pe sud.freakz.ro cand trag intr-un player de imi apare mesaj in hud cu cat HP am primit imi da eroarea asta.

Code:
L 07/06/2017 - 04:51:58: [AMXX] Displaying debug trace (plugin "VIP.amxx")
L 07/06/2017 - 04:51:58: [AMXX] Run time error 4: index out of bounds
L 07/06/2017 - 04:51:58: [AMXX]    [0] w3gta795.sma.p::Ham_CBasePlayer_TakeDamage_Pre (line 281)


Ma poate ajuta cineva ? Va rog.





Fondator & Detinator SUD.FREAKZ.RO

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 06-07-2017, 17:32:45 | Translate post to: ... (Click for more languages)

Linia 280 -> adauga
Code:

if(!is_user_connected(victim))
   return HAM_IGNORED;

Problema : Index-ul pe care il cauta cel mai probabil e al unui user care nu mai e conectat si in felul asta intra problema cu 'out of bounds'.
Rezolvare : A se verifica inainte oricarei actiuni care implica playerul daca acesta e conectat.Daca actiune are legatura cu cresterea hp-ului , spawnarea unui item pentru player sau modificarea pozitie playerului e nevoie sa se verifice si daca playerul e inca in viata altfel actiunea ceruta e imposibil de facut si se va returna o eroare cand o sa apara aceasta exceptie.



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
Fr0zeNN

[Technique]



Status: Offline
(since 13-10-2018 00:30)
Joined: 12 Feb 2015
Posts: 688, Topics: 56
Location: Romania

Reputation: 61.8
Votes: 46

     
Post Posted: 06-07-2017, 20:27:38 | Translate post to: ... (Click for more languages)

Imi da erroarea asta la compliare :

VIP.sma(280) : error 017: undefined symbol "victim"

@D3luxe





Fondator & Detinator SUD.FREAKZ.RO

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Fr0zeNN

[Technique]



Status: Offline
(since 13-10-2018 00:30)
Joined: 12 Feb 2015
Posts: 688, Topics: 56
Location: Romania

Reputation: 61.8
Votes: 46

     
Post Posted: 07-07-2017, 15:15:24 | Translate post to: ... (Click for more languages)

@-P!C@- poti da T/C am rezolvat , @GoreSpintecatoru. ma ajutat sa rezolv problema




Fondator & Detinator SUD.FREAKZ.RO

1 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by -P!C@-, 07 July 2017 14:21



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Counter-Strike: Help zone  


The time now is 19-04-2024, 15:29:55
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x