Raised This Month: $404 Target: $400
 101% 

I Need Fix bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr_A
Junior Member
Join Date: Nov 2017
Old 10-13-2018 , 06:27   I Need Fix bug
Reply With Quote #1

I Have Bug in Plugin level system Plase
Error Code
Quote:
L 10/13/2018 - 13:22:42: [CSTRIKE] Invalid player 12
L 10/13/2018 - 13:22:42: [AMXX] Displaying debug trace (plugin "Level_System.amxx", version "1.3")
L 10/13/2018 - 13:22:42: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 10/13/2018 - 13:22:42: [AMXX] [0] Level_System.sma::level_status (line 299)


include:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <nvault>
#include <fun>
#include <cstrike>
#include <fakemeta_util> 


Code plugin
PHP Code:
    else 
    
    if(
is_user_alive(Spec)) // When Spectating Someone.
    
{
        
    if(
cs_get_user_team(id) == CS_TEAM_CT)
    {        
    
set_hudmessage(2001500, -1.00.7906.01.1)
    
ShowSyncHudMsg(idg_MsgSync"[DcS] Spectating: %s^n[ Level : %d ] - [ Exp %d/%d ]",PlayerName,g_level[Spec],level_exp[Spec],g_level_exp[Spec])
    }
    
    if(
cs_get_user_team(id) == CS_TEAM_T)
    {        
    
set_hudmessage(2001500, -1.00.7906.01.1)
    
ShowSyncHudMsg(idg_MsgSync"[DcS] Spectating: %s^n[ Level : %d ] - [ Exp %d/%d ]",PlayerName,g_level[Spec],level_exp[Spec],g_level_exp[Spec])
    }
    
    }


Last edited by Mr_A; 10-13-2018 at 06:29.
Mr_A is offline
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 10-13-2018 , 06:36   Re: I Need Fix bug
Reply With Quote #2

PHP Code:
    if(is_user_alive(Spec))
    {
        
set_hudmessage(2001500, -1.00.7906.01.1
        
ShowSyncHudMsg(idg_MsgSync"[DcS] Spectating: %s^n[ Level : %d ] - [ Exp %d/%d ]",PlayerName,g_level[Spec],level_exp[Spec],g_level_exp[Spec]) 
    } 
__________________


Looking for an awesome and reliable game hosting ?
Try GeekGamers Hosting.


Last edited by D4rkSiD3Rs; 10-13-2018 at 06:38.
D4rkSiD3Rs is offline
Mr_A
Junior Member
Join Date: Nov 2017
Old 10-13-2018 , 06:57   Re: I Need Fix bug
Reply With Quote #3

Quote:
Originally Posted by D4rkSiD3Rs View Post
PHP Code:
    if(is_user_alive(Spec))
    {
        
set_hudmessage(2001500, -1.00.7906.01.1
        
ShowSyncHudMsg(idg_MsgSync"[DcS] Spectating: %s^n[ Level : %d ] - [ Exp %d/%d ]",PlayerName,g_level[Spec],level_exp[Spec],g_level_exp[Spec]) 
    } 
Ty My Friend
Mr_A is offline
Mr_A
Junior Member
Join Date: Nov 2017
Old 10-13-2018 , 09:12   Re: I Need Fix bug
Reply With Quote #4

Error Log
Quote:
L 10/13/2018 - 16:07:04: [CSTRIKE] Invalid player 19
L 10/13/2018 - 16:07:04: [AMXX] Displaying debug trace (plugin "Level_System.amxx", version "1.3")
L 10/13/2018 - 16:07:04: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 10/13/2018 - 16:07:04: [AMXX] [0] Level_System.sma::level_status (line 305)
L 10/13/2018 - 16:07:05: [CSTRIKE] Invalid player 19
L 10/13/2018 - 16:07:05: [AMXX] Displaying debug trace (plugin "Level_System.amxx", version "1.3")
L 10/13/2018 - 16:07:05: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 10/13/2018 - 16:07:05: [AMXX] [0] Level_System.sma::level_status (line 305)
L 10/13/2018 - 16:07:06: [CSTRIKE] Invalid player 19
L 10/13/2018 - 16:07:06: [AMXX] Displaying debug trace (plugin "Level_System.amxx", version "1.3")
L 10/13/2018 - 16:07:06: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 10/13/2018 - 16:07:06: [AMXX] [0] Level_System.sma::level_status (line 305)
L 10/13/2018 - 16:07:07: [CSTRIKE] Invalid player 19
L 10/13/2018 - 16:07:07: [AMXX] Displaying debug trace (plugin "Level_System.amxx", version "1.3")
L 10/13/2018 - 16:07:07: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 10/13/2018 - 16:07:07: [AMXX] [0] Level_System.sma::level_status (line 305)
L 10/13/2018 - 16:07:08: [CSTRIKE] Invalid player 19
code:
PHP Code:

public level_status(id)
{
    new 
Spec
    Spec 
pev(idPEV_SPEC_TARGET)
    new 
PlayerName[32]
    
get_user_name(SpecPlayerName31)
     
    if(
is_user_alive(id))
    {
        
    if(
cs_get_user_team(id) == CS_TEAM_CT)
    {
    
set_hudmessage(1018010, -1.00.8406.01.1)
    
ShowSyncHudMsg(idg_MsgSync"[DcS][ Level : %i ] - [ Exp : %i/%i ]",g_level[id],level_exp[id],g_level_exp[id])
    }
    
    if(
cs_get_user_team(id) == CS_TEAM_T)
    {
    
set_hudmessage(1018010, -1.00.8406.01.1)
    
ShowSyncHudMsg(idg_MsgSync"[DcS][ Level : %i ] - [ Exp : %i/%i ]",g_level[id],level_exp[id],g_level_exp[id])
    }    
    
    }
    
    else 
    
    if(
is_user_alive(Spec)) // When Spectating Someone.
    
{
        
    if(
is_user_alive(Spec))
    {        
    
set_hudmessage(2001500, -1.00.7906.01.1)
    
ShowSyncHudMsg(idg_MsgSync"[DcS] Spectating: %s^n[ Level : %d ] - [ Exp %d/%d ]",PlayerName,g_level[Spec],level_exp[Spec],g_level_exp[Spec])
    }
    
    if(
cs_get_user_team(id) == CS_TEAM_T)
    {        
    
set_hudmessage(2001500, -1.00.7906.01.1)
    
ShowSyncHudMsg(idg_MsgSync"[DcS] Spectating: %s^n[ Level : %d ] - [ Exp %d/%d ]",PlayerName,g_level[Spec],level_exp[Spec],g_level_exp[Spec])
    }
    
    }


Last edited by Mr_A; 10-13-2018 at 09:16.
Mr_A is offline
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 10-13-2018 , 09:18   Re: I Need Fix bug
Reply With Quote #5

PHP Code:
public level_status(id
{
    new 
Spec
    Spec 
pev(idPEV_SPEC_TARGET)
    new 
PlayerName[32]
    
get_user_name(SpecPlayerName31)

    if(
is_user_alive(id))
    {
        
set_hudmessage(1018010, -1.00.8406.01.1)
        
ShowSyncHudMsg(idg_MsgSync"[DcS][ Level : %i ] - [ Exp : %i/%i ]"g_level[id], level_exp[id], g_level_exp[id])
    }
    else
    if(
is_user_alive(Spec)) // When Spectating Someone.
    
{
        
set_hudmessage(2001500, -1.00.7906.01.1
        
ShowSyncHudMsg(idg_MsgSync"[DcS] Spectating: %s^n[ Level : %d ] - [ Exp %d/%d ]"PlayerNameg_level[Spec], level_exp[Spec], g_level_exp[Spec]) 
    }

__________________


Looking for an awesome and reliable game hosting ?
Try GeekGamers Hosting.


Last edited by D4rkSiD3Rs; 10-13-2018 at 09:18.
D4rkSiD3Rs is offline
Mr_A
Junior Member
Join Date: Nov 2017
Old 10-13-2018 , 09:23   Re: I Need Fix bug
Reply With Quote #6

Quote:
Originally Posted by D4rkSiD3Rs View Post
PHP Code:
public level_status(id
{
    new 
Spec
    Spec 
pev(idPEV_SPEC_TARGET)
    new 
PlayerName[32]
    
get_user_name(SpecPlayerName31)

    if(
is_user_alive(id))
    {
        
set_hudmessage(1018010, -1.00.8406.01.1)
        
ShowSyncHudMsg(idg_MsgSync"[DcS][ Level : %i ] - [ Exp : %i/%i ]"g_level[id], level_exp[id], g_level_exp[id])
    }
    else
    if(
is_user_alive(Spec)) // When Spectating Someone.
    
{
        
set_hudmessage(2001500, -1.00.7906.01.1
        
ShowSyncHudMsg(idg_MsgSync"[DcS] Spectating: %s^n[ Level : %d ] - [ Exp %d/%d ]"PlayerNameg_level[Spec], level_exp[Spec], g_level_exp[Spec]) 
    }

Ty
Mr_A is offline
Reply


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 17:53.


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