Raised This Month: $ Target: $400
 0% 

how fix that ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
poliisi299
Senior Member
Join Date: May 2011
Old 05-07-2012 , 08:49   how fix that ?
Reply With Quote #1

in my csdm server show this error, how to fix ? Ty...

Quote:
L 05/07/2012 - 15:44:40: [AMXX] Displaying debug trace (plugin "show_hp.amxx")
L 05/07/2012 - 15:44:40: [AMXX] Run time error 10: native error (native "client_print")
L 05/07/2012 - 15:44:40: [AMXX] [0] Untitled.sma::event_damage (line 11)
Attached Files
File Type: sma Get Plugin or Get Source (show_hp.sma - 610 views - 563 Bytes)
poliisi299 is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-07-2012 , 09:49   Re: how fix that ?
Reply With Quote #2

This looks like one old plugin made by me... (http://forums.alliedmods.net/showthread.php?t=147797)

Anyway, you need to check if the killer is connected to the server.
__________________
<VeCo> is offline
poliisi299
Senior Member
Join Date: May 2011
Old 05-07-2012 , 09:59   Re: how fix that ?
Reply With Quote #3

yes this is zp, but i have csdm.
hmm i dont understand "check if the killer is connect" some code?. example ??

Last edited by poliisi299; 05-07-2012 at 10:04.
poliisi299 is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-07-2012 , 10:11   Re: how fix that ?
Reply With Quote #4

PHP Code:
if(is_user_alive(id)) 


PHP Code:
if(is_user_connected(killer) && is_user_alive(id)) 
That's more for the suggestions/requests section then...
__________________
<VeCo> is offline
poliisi299
Senior Member
Join Date: May 2011
Old 05-07-2012 , 10:23   Re: how fix that ?
Reply With Quote #5

ok, ty.
poliisi299 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-07-2012 , 11:44   Re: how fix that ?
Reply With Quote #6

Quote:
Originally Posted by <VeCo> View Post
PHP Code:
if(is_user_alive(id)) 


PHP Code:
if(is_user_connected(killer) && is_user_alive(id)) 
is_user_alive(id) already checks if the player is connected. Therefore, your suggestion does nothing.
__________________
fysiks is offline
poliisi299
Senior Member
Join Date: May 2011
Old 05-07-2012 , 12:37   Re: how fix that ?
Reply With Quote #7

yes but that dont show the error any more.
poliisi299 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-07-2012 , 12:53   Re: how fix that ?
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
is_user_alive(id) already checks if the player is connected. Therefore, your suggestion does nothing.
2 different player id's
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 05-07-2012 at 12:53.
Exolent[jNr] is offline
poliisi299
Senior Member
Join Date: May 2011
Old 05-07-2012 , 13:31   Re: how fix that ?
Reply With Quote #9

Exolent do you know how to remove hud message if i dont have the .sma file of the hud message plugin ??
poliisi299 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-07-2012 , 13:37   Re: how fix that ?
Reply With Quote #10

Rewrite the plugin without the message?

You could also do it by replacing the memory in the plugin so that the message is blank, where the message is still shown but you don't see it.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 05-07-2012 at 13:37.
Exolent[jNr] 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 02:21.


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