Raised This Month: $ Target: $400
 0% 

Debug mode show error.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kulers2010
Junior Member
Join Date: Oct 2011
Location: Latvia
Old 07-11-2012 , 15:28   Debug mode show error.
Reply With Quote #1

PHP Code:
L 07/11/2012 22:23:25: [CSTRIKEInvalid player 2
L 07
/11/2012 22:23:25: [AMXXDisplaying debug trace (plugin "amx_kerenes.amxx")
L 07/11/2012 22:23:25: [AMXXRun time error 10native error (native "cs_set_user_team")
L 07/11/2012 22:23:25: [AMXX]    [0amx_kerenes.sma::client_connect (line 122)
L 07/11/2012 22:23:28: [CSTRIKEPlayer out of range (0)
L 07/11/2012 22:23:28: [AMXXDisplaying debug trace (plugin "amx_kerenes.amxx")
L 07/11/2012 22:23:28: [AMXXRun time error 10native error (native "cs_get_user_team")
L 07/11/2012 22:23:28: [AMXX]    [0amx_kerenes.sma::on_damage (line 145)
L 07/11/2012 22:23:29: [CSTRIKEPlayer out of range (0)
L 07/11/2012 22:23:29: [AMXXDisplaying debug trace (plugin "amx_kerenes.amxx")
L 07/11/2012 22:23:29: [AMXXRun time error 10native error (native "cs_get_user_team")
L 07/11/2012 22:23:29: [AMXX]    [0amx_kerenes.sma::on_damage (line 145)
L 07/11/2012 22:23:30: [CSTRIKEPlayer out of range (0)
L 07/11/2012 22:23:30: [AMXXDisplaying debug trace (plugin "amx_kerenes.amxx")
L 07/11/2012 22:23:30: [AMXXRun time error 10native error (native "cs_get_user_team")
L 07/11/2012 22:23:30: [AMXX]    [0amx_kerenes.sma::on_damage (line 145)
L 07/11/2012 22:23:31: [CSTRIKEPlayer out of range (0)
L 07/11/2012 22:23:31: [AMXXDisplaying debug trace (plugin "amx_kerenes.amxx")
L 07/11/2012 22:23:31: [AMXXRun time error 10native error (native "cs_set_user_team")
L 07/11/2012 22:23:31: [AMXX]    [0amx_kerenes.sma::start_kerenes (line 220)
L 07/11/2012 22:23:34: [CSTRIKEPlayer out of range (0)
L 07/11/2012 22:23:34: [AMXXDisplaying debug trace (plugin "amx_kerenes.amxx")
L 07/11/2012 22:23:34: [AMXXRun time error 10native error (native "cs_get_user_team")
L 07/11/2012 22:23:34: [AMXX]    [0amx_kerenes.sma::on_damage (line 145
My plugin: http://pastebin.com/iE24M7yQ

Please fix.

And one more Problem, when i run server, its crash, i need plugin take out of plugin list, run server and then ad to plugin list and then change map, and then server will not crash.
kulers2010 is offline
Send a message via Skype™ to kulers2010
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 07-11-2012 , 16:05   Re: Debug mode show error.
Reply With Quote #2

PHP Code:
public client_connect(id)
{
        
cs_set_user_team(id,CS_TEAM_T,0);

You want to set a team on player connect? lol
guipatinador is offline
kulers2010
Junior Member
Join Date: Oct 2011
Location: Latvia
Old 07-11-2012 , 16:17   Re: Debug mode show error.
Reply With Quote #3

Quote:
Originally Posted by guipatinador View Post
PHP Code:
public client_connect(id)
{
        
cs_set_user_team(id,CS_TEAM_T,0);

You want to set a team on player connect? lol
Nop, its show another problem
kulers2010 is offline
Send a message via Skype™ to kulers2010
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-11-2012 , 16:35   Re: Debug mode show error.
Reply With Quote #4

You hook damage and check attacker. However, if player takes damage from falling (example) then there will be no attacker and your plugin will break.
You need to check if the attacker is connected before trying to get the attacker's team.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
kulers2010
Junior Member
Join Date: Oct 2011
Location: Latvia
Old 07-11-2012 , 17:47   Re: Debug mode show error.
Reply With Quote #5

Its any way crash it, its not crash if i dont use function on_damage

http://pastebin.com/9S8mkz6g

Plz edit, function on_damage, i dont know

Quote:
register_event("Damage", "on_damage", "b")

public on_damage(id)
{
new attacker = NEED KNOW;
new damage = NEED KNOW;
}
kulers2010 is offline
Send a message via Skype™ to kulers2010
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 15:21.


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