Raised This Month: $ Target: $400
 0% 

set_task native error with ZP 4.3 Fix5a


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
internel
Member
Join Date: Nov 2012
Old 12-06-2014 , 18:18   set_task native error with ZP 4.3 Fix5a
Reply With Quote #1

Hello everyone!

I'm using a non-official version of the game, but functional.

The only problem that I have is when I'm playing in my server, and suddenly the dedicated sv stops working and send me this log on the console.

Quote:
L 12/06/2014 - 19:08:44: Function is not present (function "zombie_play_idle") (plugin "zombie_plague40.amxx")
L 12/06/2014 - 19:08:44: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")
L 12/06/2014 - 19:08:44: [AMXX] Run time error 10: native error (native "set_task")
L 12/06/2014 - 19:08:44: [AMXX] [0] zombie_plague40.sma::zombieme (line 6150)
L 12/06/2014 - 19:08:44: [AMXX] [1] zombie_plague40.sma::make_a_zombie (line 5521)
L 12/06/2014 - 19:08:44: [AMXX] [2] zombie_plague40.sma::make_zombie_task (line 5417)
I can't really understand why is this happening, I looked to those lines and don't seem like something is wrong. I hope any of ya could help me plz >.<

Thanks in advance, and if you need more information I'll post it right away!
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague40.sma - 728 views - 359.0 KB)
internel is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 12-07-2014 , 04:36   Re: set_task native error with ZP 4.3 Fix5a
Reply With Quote #2

This error means that function zombie_play_idle is missing, so you need to remove the part where its called. Seems you attached wrong zp, here nothing's missing.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
internel
Member
Join Date: Nov 2012
Old 12-07-2014 , 13:44   Re: set_task native error with ZP 4.3 Fix5a
Reply With Quote #3

Quote:
Originally Posted by NiHiLaNTh View Post
This error means that function zombie_play_idle is missing, so you need to remove the part where its called. Seems you attached wrong zp, here nothing's missing.
First, thank you so much for replying!!
Second, I commented that line and now it doesn't give me that error.

But now I have another error >.< I tried to lock the extra items by the "Reset" level of the player, but it doesn't seem to be working :V.

Quote:
L 12/07/2014 - 158:49: Invalid cellvector handle provided (72:18:18 )
L 12/07/2014 - 158:49: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")
L 12/07/2014 - 158:49: [AMXX] Run time error 10: native error (native "ArrayGetCell")
L 12/07/2014 - 158:49: [AMXX] [0] zombie_plague40.sma::show_menu_extras (line 3776)
L 12/07/2014 - 158:49: [AMXX] [1] zombie_plague40.sma::menu_game (line 4138 )
Any ideas? The server is hosted in Linux, I don't know if that has something to do with this problem.
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague40.sma - 437 views - 365.3 KB)

Last edited by internel; 12-07-2014 at 13:45.
internel is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 12-07-2014 , 15:27   Re: set_task native error with ZP 4.3 Fix5a
Reply With Quote #4

Quote:
L 12/07/2014 - 158:49: Invalid cellvector handle provided (72:18:18 )
You trying to access to 19 element of the g_extraitem_reset array even though it has 18 elements (counting begins from 0). Most likely in one of your extra items you forgot to add "RESET" key. Look for problem in zp_extraitems.ini
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
internel
Member
Join Date: Nov 2012
Old 12-07-2014 , 23:36   Re: set_task native error with ZP 4.3 Fix5a
Reply With Quote #5

Quote:
Originally Posted by NiHiLaNTh View Post
You trying to access to 19 element of the g_extraitem_reset array even though it has 18 elements (counting begins from 0). Most likely in one of your extra items you forgot to add "RESET" key. Look for problem in zp_extraitems.ini
thank you mate for replying again! , I just couldn't figure out what the heck was happening, so I'll just start all over again using a different tutorial to modify the extra item part.

It was weird because I just did the same thing I did to add levels to my zombie & human classes, and I didn't get any errors with that. but with the extra items, it doesn't work, so I don't know... I even looked to the zp_extraitems.ini file and it was blank (kinda weird)

thank you anyways, and I'm truly sorry for wasting your time, but don't worry that I'm taking note of everything

Last edited by internel; 12-07-2014 at 23:36.
internel is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 12-08-2014 , 02:15   Re: set_task native error with ZP 4.3 Fix5a
Reply With Quote #6

As I said the size of g_extra_reset array is only 18 elements. And you are trying to access the 19 element. So you forgot to add somewhere "RESET" key or you forgot that param at registering. Show here your zp_extraitems.ini
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
internel
Member
Join Date: Nov 2012
Old 12-08-2014 , 08:30   Re: set_task native error with ZP 4.3 Fix5a
Reply With Quote #7

Quote:
Originally Posted by NiHiLaNTh View Post
As I said the size of g_extra_reset array is only 18 elements. And you are trying to access the 19 element. So you forgot to add somewhere "RESET" key or you forgot that param at registering. Show here your zp_extraitems.ini
Here is:

Quote:
[NightVision]
NAME = NightVision
COST = 15
TEAMS = HUMAN

[T-Virus Antidote]
NAME = T-Virus Antidote
COST = 15
TEAMS = ZOMBIE

[Zombie Madness]
NAME = Zombie Madness
COST = 17
TEAMS = ZOMBIE

[Infection Bomb]
NAME = Infection Bomb
COST = 20
TEAMS = ZOMBIE

[Napalm Nade]
NAME = Napalm Nade
COST = 6
TEAMS = HUMAN

[Frost Nade]
NAME = Frost Nade
COST = 6
TEAMS = HUMAN

[Flare]
NAME = Flare
COST = 6
TEAMS = HUMAN

[AWP Magnum Sniper]
NAME = AWP Magnum Sniper
COST = 8
TEAMS = HUMAN

[M249 Para Machinegun]
NAME = M249 Para Machinegun
COST = 10
TEAMS = HUMAN

[SG550 Auto-Sniper]
NAME = SG550 Auto-Sniper
COST = 12
TEAMS = HUMAN

[G3SG1 Auto-Sniper]
NAME = G3SG1 Auto-Sniper
COST = 12
TEAMS = HUMAN

[Bomba Antidoto]
NAME = Bomba Antidoto
COST = 20
RESET = 0
TEAMS = ZOMBIE , HUMAN

[Cart Blue]
NAME = Cart Blue
COST = 0
RESET = 1
TEAMS = ZOMBIE

[Buy Silver Bullets]
NAME = Buy Silver Bullets
COST = 15
RESET = 0
TEAMS = ZOMBIE , HUMAN

[Nitrogen Galil]
NAME = Nitrogen Galil
COST = 40
RESET = 0
TEAMS = ZOMBIE , HUMAN

[Unlimited Clip (single round)]
NAME = Unlimited Clip (single round)
COST = 10
RESET = 0
TEAMS = ZOMBIE , HUMAN

[15 Sandbags]
NAME = 15 Sandbags
COST = 0
RESET = 0
TEAMS = ZOMBIE , HUMAN

[Detector De Movimiento]
NAME = Detector De Movimiento
COST = 40
RESET = 0
TEAMS = ZOMBIE , HUMAN

[M79 Grenade Launcher]
NAME = M79 Grenade Launcher
COST = 30
RESET = 0
TEAMS = ZOMBIE , HUMAN

[40mm M79 Grenade]
NAME = 40mm M79 Grenade
COST = 5
RESET = 0
TEAMS = ZOMBIE , HUMAN

[Lentes Termicos]
NAME = Lentes Termicos
COST = 5
RESET = 0
TEAMS = ZOMBIE , HUMAN

[LaserMines]
NAME = LaserMines
COST = 8
RESET = 0
TEAMS = ZOMBIE , HUMAN

[Radar Scanner]
NAME = Radar Scanner
COST = 10
RESET = 0
TEAMS = ZOMBIE , HUMAN

[Golden Deagle (Damage x3)]
NAME = Golden Deagle (Damage x3)
COST = 20
RESET = 1
TEAMS = ZOMBIE

[Cyclone]
NAME = Cyclone
COST = 20
RESET = 1
TEAMS = ZOMBIE

[Golden Ak 47]
NAME = Golden Ak 47
COST = 30
RESET = 2
TEAMS = HUMAN

[Dragon Cannon]
NAME = Dragon Cannon
COST = 1
RESET = 2
TEAMS = HUMAN

[AT4CS]
NAME = AT4CS
COST = 38
RESET = 3
TEAMS = ZOMBIE , HUMAN

[Bazooka]
NAME = Bazooka
COST = 20
RESET = 4
TEAMS = NEMESIS
internel is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-08-2014 , 08:54   Re: set_task native error with ZP 4.3 Fix5a
Reply With Quote #8

Maybe, because the name of the extra items is too long such as Detector De Movimiento and a few more.

Just try to shorten the words. If I'm wrong, just correct me. ;)

Last edited by zmd94; 12-08-2014 at 08:56.
zmd94 is offline
internel
Member
Join Date: Nov 2012
Old 12-09-2014 , 09:52   Re: set_task native error with ZP 4.3 Fix5a
Reply With Quote #9

Quote:
Originally Posted by zmd94 View Post
Maybe, because the name of the extra items is too long such as Detector De Movimiento and a few more.

Just try to shorten the words. If I'm wrong, just correct me. ;)
hmm, I don't think that could be it, because if I delete my modification, it shows me the extra items menu without a problem. so yeah, it's strange :S
internel is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-09-2014 , 10:25   Re: set_task native error with ZP 4.3 Fix5a
Reply With Quote #10

Then, it is my mistake. ;)
zmd94 is offline
Reply



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 23:55.


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