Raised This Month: $ Target: $400
 0% 

run time eror


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dineizen
Junior Member
Join Date: May 2011
Old 11-07-2011 , 17:41   run time eror
Reply With Quote #1

L 11/08/2011 - 00:46:25: [AMXX] Displaying debug trace (plugin "Jail1.amxx") L 11/08/2011 - 00:46:25: [AMXX] Run time error 10: native error (native "cs_get_user_team") L 11/08/2011 - 00:46:25: [AMXX] [0] Jail1.sma::client_damage (line 2607)

PHP Code:
public client_damage(victimentidattackerFloat:damagedamagebits

    if (
g_rebel[attacker] == true)  
    { 
        return 
PLUGIN_HANDLED
    } 
    
    new 
name_t[32
    
get_user_name(attackername_t31
    if(
cs_get_user_team(attacker) == CS_TEAM_T && cs_get_user_team(victim) == CS_TEAM_CT
    {     
        
g_rebel[attacker] = true 
        ColorChat
(0RED"^4[ ^1Extreme^4 ]^4 Prisoner ^1%s^4 is a rebel!"name_t
    } 
    return 
PLUGIN_HANDLED

This the line with problem
if(cs_get_user_team(attacker) == CS_TEAM_T && cs_get_user_team(victim) == CS_TEAM_CT)
what to do how i fix this line
dineizen is offline
 



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 14:27.


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