Results 1 to 5 of 5

Thread: Jb plugin problem

  1. #1
    Vodnik
    Join Date
    Feb 2017
    Age
    20
    Posts
    10
    Karma
    3

    Jb plugin problem

    Pozz imam problem pri compilovanju plugina u pitanju su JB Razlozi koje sam nasao na ovom forumu evo coda nzm resiti ne bavim se pawnom jb_razlozii.sma(3) : fatal error 100: cannot read from file: "colored_print"
    PHP Code:
    #include <amxmodx>
    #include <amxmisc>
    #include <colored_print>

    #define PLUGIN "[JB] Reasons"
    #define VERSION "1.0"
    #define AUTHOR "x3"

    new const g_reasons[][] =
    {
        
    "Nije ispostovao naredbu",
        
    "Usao u GUN ROOM",
        
    "Izgubio u igri",
        
    "Napao na cuvara/Simona",
        
    "Imao je oruzje",
        
    "Bio si crven",
        
    "Pogresno Sorry"
      
    }

    const 
    KEYSMENU = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<9)
    new 
    g_victim[33]
    new 
    bool:g_allow[33]

    public 
    plugin_init()
    {
        
    register_plugin(PLUGINVERSIONAUTHOR)
        
    register_event("DeathMsg""event_DeathMsg""a")
        
    register_menu("Reason Menu"KEYSMENU"menu_reason")
        
    register_clcmd("jail_reason""clcmd_jail_reason")
    }

    public 
    event_DeathMsg()
    {
        static 
    killervictimmenu[256], leni
        killer 
    read_data(1)
        
    victim read_data(2)
        
        if (
    get_user_team(killer) == && get_user_team(victim) == 1)
        {
            
    g_victim[killer] = victim
            len 
    0
            len 
    += formatex(menu[len], charsmax(menu) - len"!yNavedi razlog!^n^n")
            for (
    0;sizeof(g_reasons);i++)
                
    len += formatex(menu[len], charsmax(menu) - len"r%d.w %s^n"1g_reasons[i])
                
            
    len += formatex(menu[len], charsmax(menu) - len"\rSvoj razlog^n")            
            
    len += formatex(menu[len], charsmax(menu) - len"^n^nr0.w Izlaz")
            
    show_menu(killerKEYSMENUmenu, -1"Reason Menu")
        }
    }

    public 
    menu_reason(idkey)
    {
        static 
    message[192]
        switch (
    key)
        {
            case 
    012345:
            {
                static 
    kname[32], vname[32]
                
    get_user_name(idknamecharsmax(kname))
                
    get_user_name(g_victim[id], vnamecharsmax(vname))
                
    formatex(messagecharsmax(message), "^x04[Infinity JailBreak] ^x03%s ^x01ubio ^x03%s^x01, razlog: ^x04%s"knamevnameg_reasons[key])
                
    colored_print(0message)
            }
            case 
    6:
            {
                
    g_allow[id] = true
                client_cmd
    (id"messagemode jail_reason")
            }
        }
        
        return 
    PLUGIN_HANDLED
    }

    public 
    clcmd_jail_reason(id)
    {
        if (
    g_allow[id])
        {
            static 
    kname[32], vname[32], message[192]
            
    read_args(messagecharsmax(message))
            
    remove_quotes(message)
            
    trim(message)
            
            if (!
    equal(message""))
            {
                
    get_user_name(idknamecharsmax(kname))
                
    get_user_name(g_victim[id], vnamecharsmax(vname))
                
    format(messagecharsmax(message), "^x04[Infinity JailBreak] ^x03%s ^x01ubio ^x03%s^x01, razlog: ^x04%s"knamevnamemessage)
                
    colored_print(0message)
            }
            
    g_allow[id] = false
        
    }
        
        return 
    PLUGIN_HANDLED


  2. #2
    Banovan
    Join Date
    Oct 2012
    Location
    Bogdanci
    Age
    27
    Posts
    657
    Karma
    0

    Re: Jb plugin problem

    Ta greška ti se javlja jer kompajler pokušava učitati native iz tog include fajla, a ti nemaš taj inc.


    Zato i ne možeš kompajlirati plugin.

  3. #3
    Vodnik
    Join Date
    Feb 2017
    Age
    20
    Posts
    10
    Karma
    3

    Re: Jb plugin problem

    Kako da resim to ili da nabavim

  4. #4
    Banovan
    Join Date
    Oct 2012
    Location
    Bogdanci
    Age
    27
    Posts
    657
    Karma
    0

    Re: Jb plugin problem

    Rešavanje tog problema je jednostavan.


    Skini .inc fajl sa ovog linka https://forums.alliedmods.net/showthread.php?t=245484

    i ubaci u scripting/include

  5. #5
    Vodnik
    Join Date
    Feb 2017
    Age
    20
    Posts
    10
    Karma
    3

    Re: Jb plugin problem

    To braca hvala ti puno sad je uspesan compile wohooo K+ za tebe sve najbolje ti zelim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •