Raised This Month: $32 Target: $400
 8% 

Invalid player 2-3


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
eNNkds
Member
Join Date: Sep 2012
Location: Romania
Old 12-13-2020 , 14:40   Invalid player 2-3
Reply With Quote #1

Hi i have debug a plugin and it's make invalid player 2 / 3 this is the part of script line 23
line 23 is if( cs_get_user_team( Team ) == 1 )
Code:
public DeathMsg( )
{
	new Victim = read_data( 2 )
	new Team = cs_get_user_team( Victim )
	if( !bb_is_build_phase( ) && !bb_is_prep_phase( ) )
	{
		if( Team != 0 ){
			if( cs_get_user_team( Team ) == 1 )
				DeleteBlock( 1, Victim, Team )
		else DeleteBlock( 2, Victim, 0 )
		}
	}
}
Code:
[CSTRIKE] Invalid player 2
[AMXX] Displaying debug trace (plugin "testing")
[AMXX] Run time error 10: native error (native "cs_get_user_team")
maybe it need check if user connected/disconected?
eNNkds is offline
Send a message via Skype™ to eNNkds
 


Thread Tools
Display Modes

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 05:50.


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