Raised This Month: $ Target: $400
 0% 

Hud Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 03-15-2010 , 16:01   Hud Error
Reply With Quote #1

I got a problem with human classes when hud has to show their class:

Hlds error:

Code:
L 03/15/2010 - 21:57:42: Function is not present (function "Task_Showclass") (plugin "zombie_swarm.amxx")
L 03/15/2010 - 21:57:42: [AMXX] Displaying debug trace (plugin "zombie_swarm.amxx")
L 03/15/2010 - 21:57:42: [AMXX] Run time error 10: native error (native "set_task")
L 03/15/2010 - 21:57:42: [AMXX]    [0] zombie_swarm.sma::bacon_spawn (line 706)
706 Line:

PHP Code:
        if(!task_exists(TASKID_SHOWHUD id))
            
set_task(0.2"Task_Showclass"TASKID_SHOWHUD id
But i can't define another one becouse there is one for zombie classes what should i do that hud show human class to CT ?
DoviuX is offline
Send a message via Skype™ to DoviuX
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-15-2010 , 16:04   Re: Hud Error
Reply With Quote #2

What? It tells you in the error log. You're not putting in a function called "Task_showclass".
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-15-2010 , 16:14   Re: Hud Error
Reply With Quote #3

Make sure the case is the same, you may have put Task_Showclass in set_task native and named the callback Task_ShowClass for example, or you may just forgot to put the callback.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 03-15-2010 , 16:17   Re: Hud Error
Reply With Quote #4

Another error when i fixed;
Code:
L 03/15/2010 - 22:15:12: [AMXX] Displaying debug trace (plugin "zombie_swarm.amxx")
L 03/15/2010 - 22:15:12: [AMXX] Run time error 4: index out of bounds 
L 03/15/2010 - 22:15:12: [AMXX]    [0] zombie_swarm.sma::Task_ShowClass (line 1495)
Code:
PHP Code:
public Task_ShowClass(id)
{
    
set_hudmessage(25518000.010.9000.00.30.00.0)
    
ShowSyncHudMsg(idg_hudsync "Class: %s "humanclassnames[PlayerClass[id]])

    
set_task(0.1"Task_ShowClass"TASKID_SHOWHUD id)    

    return 
PLUGIN_CONTINUE

DoviuX is offline
Send a message via Skype™ to DoviuX
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 03-15-2010 , 16:40   Re: Hud Error
Reply With Quote #5

PlayerClass[id] is larger than the humanclassnames array.
Seta00 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 08:43.


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