Raised This Month: $ Target: $400
 0% 

Help / Support AlienBoss


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JaramSeZielone
New Member
Join Date: Apr 2024
Old 04-18-2024 , 04:13   AlienBoss
Reply With Quote #1

Can someone help me with this error?

L 04/18/2024 - 10:16:20: [FAKEMETA] Invalid entity
L 04/18/2024 - 10:16:20: [AMXX] Displaying debug trace (plugin "zl_alien/zl_alienboss.amxx", version "2.0.2")
L 04/18/2024 - 10:16:20: [AMXX] Run time error 10: native error (native "pev")
L 04/18/2024 - 10:16:20: [AMXX] [0] zl_alienboss.sma::Think_Health (line 485)
L 04/18/2024 - 10:16:20: [FAKEMETA] Invalid entity
L 04/18/2024 - 10:16:20: [AMXX] Displaying debug trace (plugin "zl_alien/zl_alienboss.amxx", version "2.0.2")
L 04/18/2024 - 10:16:20: [AMXX] Run time error 10: native error (native "pev")
L 04/18/2024 - 10:16:20: [AMXX] [0] zl_alienboss.sma::Think_Timer (line 531)
L 04/18/2024 - 10:16:21: [FAKEMETA] Invalid entity
L 04/18/2024 - 10:16:21: [AMXX] Displaying debug trace (plugin "zl_alien/zl_alienboss.amxx", version "2.0.2")
L 04/18/2024 - 10:16:21: [AMXX] Run time error 10: native error (native "pev")
L 04/18/2024 - 10:16:21: [AMXX] [0] zl_alienboss.sma::Think_Timer (line 531)
L 04/18/2024 - 10:16:21: [FAKEMETA] Invalid entity
L 04/18/2024 - 10:16:21: [AMXX] Displaying debug trace (plugin "zl_alien/zl_alienboss.amxx", version "2.0.2")
L 04/18/2024 - 10:16:21: [AMXX] Run time error 10: native error (native "pev")
L 04/18/2024 - 10:16:21: [AMXX] [0] zl_alienboss.sma::Hook_Spawn (line 879)
Attached Files
File Type: sma Get Plugin or Get Source (zl_alienboss.sma - 72 views - 51.8 KB)

Last edited by JaramSeZielone; 04-18-2024 at 04:16.
JaramSeZielone is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 04-18-2024 , 09:55   Re: AlienBoss
Reply With Quote #2

these checks were added...
  1. Code:
    public Think_Health(Ent) {     if( !is_valid_ent(Ent) )         return         static Float:Origin[3], Float:Health, Float:hpbuff         if( !is_valid_ent(g_Alien) )         return     pev(g_Alien, pev_origin, Origin)     //... }
  2. Code:
    public Think_Timer(Ent) {     if( !is_valid_ent(Ent) )         return             if (!zl_player_alive()) {         set_pev(Ent, pev_nextthink, get_gametime() + 1.0)         return     }         if ( !is_valid_ent(g_Alien) || pev(g_Alien, pev_deadflag) == DEAD_DYING)         return     //... }
  3. Code:
    public Hook_Spawn(id) {     if (!g_Ability[6]) {         if(is_valid_ent(g_Alien) && pev(g_Alien, pev_takedamage) == DAMAGE_NO)      //... }
__________________

Last edited by mlibre; 04-19-2024 at 08:18.
mlibre is offline
JaramSeZielone
New Member
Join Date: Apr 2024
Old 04-18-2024 , 12:13   Re: AlienBoss
Reply With Quote #3

no errors in the console but now it doesn't appear at all
JaramSeZielone is offline
JaramSeZielone
New Member
Join Date: Apr 2024
Old 04-19-2024 , 01:44   Re: AlienBoss
Reply With Quote #5

okey
When i add code 1 no error, when i add code 2 no respawn if i add code 3 no error11

if i change this line: 541: if (pev(g_Alien, pev_deadflag) == DEAD_DYING)
return

its no respawn boss

still this error:
L 04/19/2024 - 08:50:25: [AMXX] Displaying debug trace (plugin "zl_alien/zl_alienboss_v2.amxx", version "2.0.2")
L 04/19/2024 - 08:50:25: [AMXX] Run time error 10: native error (native "pev")
L 04/19/2024 - 08:50:25: [AMXX] [0] zl_alienboss_v2.sma::Think_Timer (line 541)

Last edited by JaramSeZielone; 04-19-2024 at 02:50.
JaramSeZielone is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 04-19-2024 , 08:17   Re: AlienBoss
Reply With Quote #6

try this replaced is_valid_ent... Look at what value it indicates in the console:
  • Think_Health = ?
  • Think_Timer = ?
Attached Files
File Type: sma Get Plugin or Get Source (zl_alienboss.sma - 65 views - 51.8 KB)
__________________

Last edited by mlibre; 04-19-2024 at 08:26. Reason: debug
mlibre is offline
JaramSeZielone
New Member
Join Date: Apr 2024
Old 04-19-2024 , 09:33   Re: AlienBoss
Reply With Quote #7

not respawn but Think Timer = 0
JaramSeZielone is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 04-19-2024 , 18:07   Re: AlienBoss
Reply With Quote #8

change the g_Alien <= 0 to g_Alien < 0 maybe it is returning a negative value
__________________
mlibre is offline
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

Forum Jump


All times are GMT -4. The time now is 08:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode