Raised This Month: $ Target: $400
 0% 

cs_get_user_team error log o_O


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 06-20-2017 , 10:20   cs_get_user_team error log o_O
Reply With Quote #1

Hi Ther i have error of cs_get_user_team and i tired all ways to fix and i didnt found any thing show me its wrong code so can any one take look for the script

Error Log:
Quote:
L 06/20/2017 - 01:04:23: Start of error session.
L 06/20/2017 - 01:04:23: Info (map "cs_1337_assault") (file "addons/amxmodx/logs/error_20170620.log")
L 06/20/2017 - 01:04:23: [CSTRIKE] Invalid player 1
L 06/20/2017 - 01:04:23: [AMXX] Displaying debug trace (plugin "Umbrella_Swarm.amxx", version "6.0")
L 06/20/2017 - 01:04:23: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 06/20/2017 - 01:04:23: [AMXX] [0] Umbrella_Swarm.sma::changeTeam (line 2144)
L 06/20/2017 - 16:11:28: Start of error session.
L 06/20/2017 - 16:11:28: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20170620.log")
L 06/20/2017 - 16:11:28: [CSTRIKE] Invalid player 22
L 06/20/2017 - 16:11:28: [AMXX] Displaying debug trace (plugin "Umbrella_Swarm.amxx", version "6.0")
L 06/20/2017 - 16:11:28: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 06/20/2017 - 16:11:28: [AMXX] [0] Umbrella_Swarm.sma::cmdRespawn (line 60
L 06/20/2017 - 16:29:59: [CSTRIKE] Invalid player 3
L 06/20/2017 - 16:29:59: [AMXX] Displaying debug trace (plugin "Umbrella_Swarm.amxx", version "6.0")
L 06/20/2017 - 16:29:59: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 06/20/2017 - 16:29:59: [AMXX] [0] Umbrella_Swarm.sma::cmdRespawn (line 60
Script of Change TEAM error:
PHP Code:
public changeTeamid )
{
    switch( 
cs_get_user_teamid ) )
    {
        case 
CS_TEAM_CTcs_set_user_teamidCS_TEAM_T );
        case 
CS_TEAM_Tcs_set_user_teamidCS_TEAM_CT );
    }

    
round_count 0;

Hier the code of that line 2144
Quote:
switch( cs_get_user_team( id ) )
PHP Code:
public cmdRespawn(id)
{
    
//log_to_file(g_logfile, "cmdRespawn");
    
remove_task(id+TID_RESP);
    
    if((
get_pcvar_num(cvar_zombie_respawn) || get_pcvar_num(cvar_human_respawn)) && gRoundStarted)
    {
        static 
CsTeams:team;
        
        if(!(
<= id <= 32))
            return;
            
        
team cs_get_user_team(id);
        
        if(!
is_user_connected(id) || is_user_alive(id) || (team != CS_TEAM_T && team != CS_TEAM_CT))
            return;
        
        switch(
team)
        {
            case 
CS_TEAM_T:
            { 
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-20-2017 , 10:31   Re: cs_get_user_team error log o_O
Reply With Quote #2

Show the full code...
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 06-20-2017 , 10:51   Re: cs_get_user_team error log o_O
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
Show the full code...
we all know if i show the full code will be stolen + will no one help me in code of 4000+ Line
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-20-2017 , 10:59   Re: cs_get_user_team error log o_O
Reply With Quote #4

I'm. Pretty sure the code is awful, why you scared sharing the code??

Anyway just show how is changeteam function is called...
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 06-20-2017 , 11:07   Re: cs_get_user_team error log o_O
Reply With Quote #5

get called by delay
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-20-2017 , 11:08   Re: cs_get_user_team error log o_O
Reply With Quote #6

I dont know what its suppose to mean just do what i said previously..
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 06-20-2017 , 11:09   Re: cs_get_user_team error log o_O
Reply With Quote #7

PHP Code:
public add_delay(id)
{
    switch(
id)
    {
        case 
1..8set_task(0.1"changeTeam"id);
        case 
9..16set_task(0.2"changeTeam"id);
        case 
17..24set_task(0.3"changeTeam"id);
        case 
25..32set_task(0.4"changeTeam"id);
    }

__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-20-2017 , 11:12   Re: cs_get_user_team error log o_O
Reply With Quote #8

Show add delay how its called...

You do realise that there is no point of add delay function??
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 06-20-2017 at 11:13.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 06-20-2017 , 11:15   Re: cs_get_user_team error log o_O
Reply With Quote #9

now dont ask how round end called -.- if you want i will know you bad scripter ....

PHP Code:
public OnRoundEnd()
{
    
gRoundStarted false;
    
    if(
round_count >= get_pcvar_num(cvar_round_switch))
    {
        new 
players[32], num;
        
get_players(playersnum);
        
        for(new 
0numi++)
            
add_delay(players[i]);
        
        
client_printcolor(0"/ctrSwitching teams !!!");
        
round_count 0;
    }

__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-20-2017 , 11:20   Re: cs_get_user_team error log o_O
Reply With Quote #10

In cmdrespawn check if is user connected before getting his team.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 23:04.


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