AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how fix that ? (https://forums.alliedmods.net/showthread.php?t=184638)

poliisi299 05-07-2012 08:49

how fix that ?
 
1 Attachment(s)
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)

<VeCo> 05-07-2012 09:49

Re: how fix that ?
 
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.

poliisi299 05-07-2012 09:59

Re: how fix that ?
 
yes this is zp, but i have csdm. :D
hmm i dont understand "check if the killer is connect" some code?. example ??

<VeCo> 05-07-2012 10:11

Re: how fix that ?
 
PHP Code:

if(is_user_alive(id)) 

:arrow:

PHP Code:

if(is_user_connected(killer) && is_user_alive(id)) 

That's more for the suggestions/requests section then...

poliisi299 05-07-2012 10:23

Re: how fix that ?
 
ok, ty.

fysiks 05-07-2012 11:44

Re: how fix that ?
 
Quote:

Originally Posted by <VeCo> (Post 1704170)
PHP Code:

if(is_user_alive(id)) 

:arrow:

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.

poliisi299 05-07-2012 12:37

Re: how fix that ?
 
yes but that dont show the error any more.

Exolent[jNr] 05-07-2012 12:53

Re: how fix that ?
 
Quote:

Originally Posted by fysiks (Post 1704257)
is_user_alive(id) already checks if the player is connected. Therefore, your suggestion does nothing.

2 different player id's :wink:

poliisi299 05-07-2012 13:31

Re: how fix that ?
 
Exolent do you know how to remove hud message if i dont have the .sma file of the hud message plugin ??

Exolent[jNr] 05-07-2012 13:37

Re: how fix that ?
 
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.


All times are GMT -4. The time now is 00:31.

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