Discord sunucumuz açılmıştır, hepinizi bekleriz

https://discord.gg/43gGDQe6tS

Yardım lütfen

Eklenti sorunlarınız ve özel eklenti istekleriniz

Moderatör: Moderatörler

Kullanıcı avatarı

Konu Sahibi
ediz
Mesajlar: 46
Kayıt: Pzr Oca 28, 2018 10:31 pm
Clan İsmi: Carbon
İletişim:

Yardım lütfen

Mesaj gönderen ediz »

Selamlar. Bugün CSDurağı'ndan serverimi aldım. Normalde sorunsuzca derlenen kumar plugini panelden derlediğimde bana şu hataları veriyor:

Kod: Tümünü seç

Sonuç
Eklenti derleme sonucu aşağıdaki gibidir; 
AMX Mod X Compiler 1.8.3-dev+5079
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

/home/araclar/compiler/include/colorchat.inc(31) : error 021: symbol already defined: "client_print_color"
/home/araclar/compiler/include/colorchat.inc(34) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(36) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(39) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(45) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(49) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(56) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(58) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(62) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(67) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(70) : error 021: symbol already defined: "get_user_team"
/home/araclar/compiler/include/colorchat.inc(74) : error 021: symbol already defined: "id"
/home/araclar/compiler/include/colorchat.inc(74) : warning 218: old style prototypes used with optional semicolumns
/home/araclar/compiler/include/colorchat.inc(77) : error 021: symbol already defined: "id"
/home/araclar/compiler/include/colorchat.inc(77) : warning 218: old style prototypes used with optional semicolumns
/home/araclar/compiler/include/colorchat.inc(80) : error 021: symbol already defined: "id"
/home/araclar/compiler/include/colorchat.inc(80) : warning 218: old style prototypes used with optional semicolumns
/home/araclar/compiler/include/colorchat.inc(81) : error 054: unmatched closing brace
/home/araclar/compiler/include/colorchat.inc(82) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(84) : warning 218: old style prototypes used with optional semicolumns
/home/araclar/compiler/include/colorchat.inc(85) : error 054: unmatched closing brace
/home/araclar/compiler/include/colorchat.inc(89) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(95) : error 021: symbol already defined: "get_players"
/home/araclar/compiler/include/colorchat.inc(96) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(98) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(105) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(107) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(110) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(114) : error 010: invalid function or declaration
/home/araclar/compiler/include/colorchat.inc(115) : error 010: invalid function or declaration

Compilation aborted.
26 Errors.
Done.
Bunu nasıl çözebilirim? Ayrıca plugine berabere bitince cephaneleri geri vermesini eklemiştim ama o da çalışmıyor. Yardımcı olur musunuz?

Plugin burada:

Kod: Tümünü seç

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#include <colorchat>

#define PLUGIN "asd"
#define VERSION "1.3"
#define AUTHOR "asd"

#define GAMBLINGTIME    15.0

new Gamble[ 33 ]
new Guess[ 33 ];

new bool: b_gambling;
new cvar1, cvar2;

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /kumar","Menu");
    register_clcmd("say !kumar","Menu");
    register_clcmd("say .kumar","Menu");
    register_clcmd("say kumar","Menu");
    register_message(get_user_msgid("TextMsg") ,"TextMsg")
    register_logevent("event_new_round",2,"0=World triggered","1=Round_Start") 
    
    cvar1 = register_cvar( "kumar_ammo", "5" );
    cvar2 = register_cvar( "kumar_katlama", "2" );
}

public plugin_end()
{
    remove_task( 987654 );      
}

public event_new_round(id)
{
    b_gambling = true;
    set_task( GAMBLINGTIME, "StopGambling", 987654 );
    ColorChat( 0, GREEN, "[mort vivante]^4 ^3Kumar Oyunu ^1acildi,Kumar Oynamak icin '^3!kumar^1' yaziniz..^3 15 ^1Saniye sonra bahisler kapatilacak!" );
    if( b_gambling == true ) {
        set_task(5.0,"bilgiv1",id,_,_,_,2)
    } 
}
public bilgiv1(id)
{
	ColorChat(id,GREEN,"[mort vivante]^4 ^3Kumar Oyunu ^1acildi,Kumar Oynamak icin '^3!kumar^1' yaziniz..^3 15 ^1Saniye sonra bahisler kapatilacak!");
}
public StopGambling( taskid )
{
    b_gambling = false;
    ColorChat( 0, GREEN, "[mort vivante]^4 ^3Kumar Oyunu ^1Kapatildi!" );
}
public client_connect( id )
{ 
    Guess[ id ] = 0;
    Gamble[ id ] = get_pcvar_num( cvar1 );
}
public client_disconnect( id )
{
    Guess[ id ] = 0;
    Gamble[ id ] = 0;
}
public Menu( id ) 
{
    if( !b_gambling ) {
        ColorChat( id, GREEN, "[mort vivante] ^1Simdi Kumar Oynayamazsin!" );
        return PLUGIN_CONTINUE;
    }
    
    if( Guess[ id ] ){
        ColorChat( id, GREEN, "[mort vivante] ^1Zaten Kumar Oynamissin!" );
        return PLUGIN_CONTINUE;
    }
    
    new szMenu[ 128 ];
    new menu = menu_create( "\rmort vivante \w| \yKumar Oynama", "Menu_handle" );
    menu_additem( menu, "\wKumar Arttir \y[+]", "1" );
    menu_additem( menu, "\wKumar Dusur \r[-]", "2" );
    menu_additem( menu, "\wBu Eli \rZombieler \wAlir", "3" );
    format( szMenu, charsmax( szMenu ), "\wBu Eli \yInsanlar \wAlir^n\ySuanki Bahisiniz : \r%d \yCephane", Gamble[ id ] );
    menu_additem( menu , szMenu, "4" );
    
    menu_display( id, menu );
    return PLUGIN_HANDLED;
}
public Menu_handle( id, menu, item ){
    
    if( item == MENU_EXIT ) {
        menu_destroy( menu )
        return PLUGIN_HANDLED;
    }
    new data[6], iName[64]
    new acces, callback;
    menu_item_getinfo( menu, item, acces, data,5, iName, 63, callback )
    
    new items = str_to_num(data)
    
    switch( items )
    { 
        case 1 :{
            if( zp_get_user_ammo_packs( id ) < Gamble[id] + get_pcvar_num( cvar1 ) || zp_get_user_ammo_packs( id ) == 0) {
                ColorChat(id,GREEN,"[mort vivante] ^1Yeterli Cephaneniz Yok!");
            }
            else {
                    Gamble[id] += get_pcvar_num( cvar1 );
                  }
	    Menu( id ); 
	}
        case 2 :{
            if( Gamble[ id ] <= 0)
            {
                ColorChat(id,GREEN,"[mort vivante] ^1Kumarinizi Hic Arttirmamissiniz!");
                Gamble[ id ] = 1;
            }
            else if( Gamble[ id ] < get_pcvar_num( cvar1 ) || zp_get_user_ammo_packs( id ) == 0) {
                ColorChat(id,GREEN,"[mort vivante] ^1Daha Fazla Azaltamazsiniz!");
            }
            else {
                Gamble[ id ] -= get_pcvar_num( cvar1 );
                if( Gamble[ id ] <= 0 )
                    Gamble[ id ] = 1;
            }
            Menu( id ); 
        }
        case 3 :{
            if( Guess[ id ] ) {
                ColorChat(id,GREEN,"[mort vivante] ^1Zaten Oynamissin!");
            }
            else {
                Guess[ id ] = 1;
                zp_set_user_ammo_packs( id, zp_get_user_ammo_packs( id ) - Gamble[ id ] );
                ColorChat(id,GREEN,"[mort vivante] ^1Zombiler Uzerine^3 %d^1 Cephane Oynadin!", Gamble[ id ] );
            }
        }
        case 4 :{
            if( Guess[ id ] ) {
                ColorChat(id,GREEN,"[mort vivante] ^1Zaten Oynamissin!");
            }
            else {
                Guess[ id ] = 2;
                zp_set_user_ammo_packs( id, zp_get_user_ammo_packs( id ) - Gamble[ id ] );
                ColorChat(id,GREEN,"[mort vivante] ^1Insanlar Uzerine^3 %d^1 Cephane Oynadin!", Gamble[ id ] );
            }
        }
    }
    return PLUGIN_CONTINUE;
}   

public TextMsg()
{    
    new players[ 32 ], pnum, id;
    get_players( players, pnum );
    
    new Msg[ 32 ];
    get_msg_arg_string( 2, Msg, charsmax( Msg) )
    
    if( equal( Msg, "#Terrorists_Win") )  {
        for( new i = 0; i < pnum; i++ ) {
            id = players[ i ];
            if( Guess[ id ] ) {
                if( Guess[ id ] == 1 ) {
                    ColorChat(id,GREEN,"[mort vivante] ^1Kazandin! Kumara Bastigin Cephane^3 2^1'ye Katlandi");
                    zp_set_user_ammo_packs(id,zp_get_user_ammo_packs(id) + Gamble[ id ] * get_pcvar_num( cvar2 ) );
                }
                else {
                    ColorChat(id,GREEN,"[mort vivante] ^1Kumari Kaybettin!");
                }
                Guess[ id ] = 0;
                Gamble[ id ] = get_pcvar_num( cvar1 );
            }
        }
    }
    else if( equal( Msg, "#CTs_Win" ) )  {
        for( new i = 0; i < pnum; i++ ) {
            id = players[ i ];
            if( Guess[ id ] ) {
                if( Guess[ id ] == 2 ) {
                    ColorChat(id,GREEN,"[mort vivante] ^1Kazandin! Kumara Bastigin Cephane^3 2^1'ye Katlandi");
                    zp_set_user_ammo_packs(id,zp_get_user_ammo_packs(id) + Gamble[ id ] * get_pcvar_num( cvar2 ) );
                }
                else {
                    ColorChat(id,GREEN,"[mort vivante] ^1Kumari Kaybettin!");
                }
                Guess[ id ] = 0;
                Gamble[ id ] = get_pcvar_num( cvar1 );
            }
        }
    }
    else if( equal( Msg, "#Round_Draw" ) )  {
    	for( new i = 0; i < pnum; i++ ) {
     		id = players[ i ];
         	if( Guess[ id ] ) {
			    ColorChat(id,GREEN,"[mort vivante] ^1Berabere! Kumara Bastigin Cephaneyi Geri Aldin");
			    zp_set_user_ammo_packs(id,zp_get_user_ammo_packs(id) + Gamble[ id ] );
			}
		Guess[ id ] = 0;
		Gamble[ id ] = get_pcvar_num( cvar1 );
  		}
    }
    
    if( task_exists( 987654 ) ) 
        remove_task( 987654 );
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

ShooTeR
Mesajlar: 4496
Kayıt: Çrş Ağu 16, 2017 10:35 pm
Server Ip/DNS: CSXX.CSDURAGI.COM
Clan İsmi: NoMercy

Yardım lütfen

Mesaj gönderen ShooTeR »

Kod: Tümünü seç

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

enum Color
{
    NORMAL = 1, // clients scr_concolor cvar color
    GREEN, // Green Color
    TEAM_COLOR, // Red, grey, blue
    GREY, // grey
    RED, // Red
    BLUE, // Blue
}

new TeamName[][] = 
{
    "",
    "TERRORIST",
    "CT",
    "SPECTATOR"
}

ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
    static message[256];

    switch(type)
    {
        case NORMAL: // clients scr_concolor cvar color
        {
            message[0] = 0x01;
        }
        case GREEN: // Green
        {
            message[0] = 0x04;
        }
        default: // White, Red, Blue
        {
            message[0] = 0x03;
        }
    }

    vformat(message[1], 251, msg, 4);

    // Make sure message is not longer than 192 character. Will crash the server.
    message[192] = '^0';

    static team, ColorChange, index, MSG_Type;
    
    if(id)
    {
        MSG_Type = MSG_ONE;
        index = id;
    } else {
        index = FindPlayer();
        MSG_Type = MSG_ALL;
    }
    
    team = get_user_team(index);
    ColorChange = ColorSelection(index, MSG_Type, type);

    ShowColorMessage(index, MSG_Type, message);
        
    if(ColorChange)
    {
        Team_Info(index, MSG_Type, TeamName[team]);
    }
}

ShowColorMessage(id, type, message[])
{
    message_begin(type, get_user_msgid("SayText"), _, id);
    write_byte(id)        
    write_string(message);
    message_end();    
}

Team_Info(id, type, team[])
{
    message_begin(type, get_user_msgid("TeamInfo"), _, id);
    write_byte(id);
    write_string(team);
    message_end();

    return 1;
}

ColorSelection(index, type, Color:Type)
{
    switch(Type)
    {
        case RED:
        {
            return Team_Info(index, type, TeamName[1]);
        }
        case BLUE:
        {
            return Team_Info(index, type, TeamName[2]);
        }
        case GREY:
        {
            return Team_Info(index, type, TeamName[0]);
        }
    }

    return 0;
}

FindPlayer()
{
    static i;
    i = -1;

    while(i <= get_maxplayers())
    {
        if(is_user_connected(++i))
        {
            return i;
        }
    }

    return -1;
} 






#define PLUGIN "asd"
#define VERSION "1.3"
#define AUTHOR "asd"

#define GAMBLINGTIME    15.0

new Gamble[ 33 ]
new Guess[ 33 ];

new bool: b_gambling;
new cvar1, cvar2;

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /kumar","Menu");
    register_clcmd("say !kumar","Menu");
    register_clcmd("say .kumar","Menu");
    register_clcmd("say kumar","Menu");
    register_message(get_user_msgid("TextMsg") ,"TextMsg")
    register_logevent("event_new_round",2,"0=World triggered","1=Round_Start") 
    
    cvar1 = register_cvar( "kumar_ammo", "5" );
    cvar2 = register_cvar( "kumar_katlama", "2" );
}

public plugin_end()
{
    remove_task( 987654 );      
}

public event_new_round(id)
{
    b_gambling = true;
    set_task( GAMBLINGTIME, "StopGambling", 987654 );
    ColorChat( 0, GREEN, "[mort vivante]^4 ^3Kumar Oyunu ^1acildi,Kumar Oynamak icin '^3!kumar^1' yaziniz..^3 15 ^1Saniye sonra bahisler kapatilacak!" );
    if( b_gambling == true ) {
        set_task(5.0,"bilgiv1",id,_,_,_,2)
    } 
}
public bilgiv1(id)
{
	ColorChat(id,GREEN,"[mort vivante]^4 ^3Kumar Oyunu ^1acildi,Kumar Oynamak icin '^3!kumar^1' yaziniz..^3 15 ^1Saniye sonra bahisler kapatilacak!");
}
public StopGambling( taskid )
{
    b_gambling = false;
    ColorChat( 0, GREEN, "[mort vivante]^4 ^3Kumar Oyunu ^1Kapatildi!" );
}
public client_connect( id )
{ 
    Guess[ id ] = 0;
    Gamble[ id ] = get_pcvar_num( cvar1 );
}
public client_disconnect( id )
{
    Guess[ id ] = 0;
    Gamble[ id ] = 0;
}
public Menu( id ) 
{
    if( !b_gambling ) {
        ColorChat( id, GREEN, "[mort vivante] ^1Simdi Kumar Oynayamazsin!" );
        return PLUGIN_CONTINUE;
    }
    
    if( Guess[ id ] ){
        ColorChat( id, GREEN, "[mort vivante] ^1Zaten Kumar Oynamissin!" );
        return PLUGIN_CONTINUE;
    }
    
    new szMenu[ 128 ];
    new menu = menu_create( "\rmort vivante \w| \yKumar Oynama", "Menu_handle" );
    menu_additem( menu, "\wKumar Arttir \y[+]", "1" );
    menu_additem( menu, "\wKumar Dusur \r[-]", "2" );
    menu_additem( menu, "\wBu Eli \rZombieler \wAlir", "3" );
    format( szMenu, charsmax( szMenu ), "\wBu Eli \yInsanlar \wAlir^n\ySuanki Bahisiniz : \r%d \yCephane", Gamble[ id ] );
    menu_additem( menu , szMenu, "4" );
    
    menu_display( id, menu );
    return PLUGIN_HANDLED;
}
public Menu_handle( id, menu, item ){
    
    if( item == MENU_EXIT ) {
        menu_destroy( menu )
        return PLUGIN_HANDLED;
    }
    new data[6], iName[64]
    new acces, callback;
    menu_item_getinfo( menu, item, acces, data,5, iName, 63, callback )
    
    new items = str_to_num(data)
    
    switch( items )
    { 
        case 1 :{
            if( zp_get_user_ammo_packs( id ) < Gamble[id] + get_pcvar_num( cvar1 ) || zp_get_user_ammo_packs( id ) == 0) {
                ColorChat(id,GREEN,"[mort vivante] ^1Yeterli Cephaneniz Yok!");
            }
            else {
                    Gamble[id] += get_pcvar_num( cvar1 );
                  }
	    Menu( id ); 
	}
        case 2 :{
            if( Gamble[ id ] <= 0)
            {
                ColorChat(id,GREEN,"[mort vivante] ^1Kumarinizi Hic Arttirmamissiniz!");
                Gamble[ id ] = 1;
            }
            else if( Gamble[ id ] < get_pcvar_num( cvar1 ) || zp_get_user_ammo_packs( id ) == 0) {
                ColorChat(id,GREEN,"[mort vivante] ^1Daha Fazla Azaltamazsiniz!");
            }
            else {
                Gamble[ id ] -= get_pcvar_num( cvar1 );
                if( Gamble[ id ] <= 0 )
                    Gamble[ id ] = 1;
            }
            Menu( id ); 
        }
        case 3 :{
            if( Guess[ id ] ) {
                ColorChat(id,GREEN,"[mort vivante] ^1Zaten Oynamissin!");
            }
            else {
                Guess[ id ] = 1;
                zp_set_user_ammo_packs( id, zp_get_user_ammo_packs( id ) - Gamble[ id ] );
                ColorChat(id,GREEN,"[mort vivante] ^1Zombiler Uzerine^3 %d^1 Cephane Oynadin!", Gamble[ id ] );
            }
        }
        case 4 :{
            if( Guess[ id ] ) {
                ColorChat(id,GREEN,"[mort vivante] ^1Zaten Oynamissin!");
            }
            else {
                Guess[ id ] = 2;
                zp_set_user_ammo_packs( id, zp_get_user_ammo_packs( id ) - Gamble[ id ] );
                ColorChat(id,GREEN,"[mort vivante] ^1Insanlar Uzerine^3 %d^1 Cephane Oynadin!", Gamble[ id ] );
            }
        }
    }
    return PLUGIN_CONTINUE;
}   

public TextMsg()
{    
    new players[ 32 ], pnum, id;
    get_players( players, pnum );
    
    new Msg[ 32 ];
    get_msg_arg_string( 2, Msg, charsmax( Msg) )
    
    if( equal( Msg, "#Terrorists_Win") )  {
        for( new i = 0; i < pnum; i++ ) {
            id = players[ i ];
            if( Guess[ id ] ) {
                if( Guess[ id ] == 1 ) {
                    ColorChat(id,GREEN,"[mort vivante] ^1Kazandin! Kumara Bastigin Cephane^3 2^1'ye Katlandi");
                    zp_set_user_ammo_packs(id,zp_get_user_ammo_packs(id) + Gamble[ id ] * get_pcvar_num( cvar2 ) );
                }
                else {
                    ColorChat(id,GREEN,"[mort vivante] ^1Kumari Kaybettin!");
                }
                Guess[ id ] = 0;
                Gamble[ id ] = get_pcvar_num( cvar1 );
            }
        }
    }
    else if( equal( Msg, "#CTs_Win" ) )  {
        for( new i = 0; i < pnum; i++ ) {
            id = players[ i ];
            if( Guess[ id ] ) {
                if( Guess[ id ] == 2 ) {
                    ColorChat(id,GREEN,"[mort vivante] ^1Kazandin! Kumara Bastigin Cephane^3 2^1'ye Katlandi");
                    zp_set_user_ammo_packs(id,zp_get_user_ammo_packs(id) + Gamble[ id ] * get_pcvar_num( cvar2 ) );
                }
                else {
                    ColorChat(id,GREEN,"[mort vivante] ^1Kumari Kaybettin!");
                }
                Guess[ id ] = 0;
                Gamble[ id ] = get_pcvar_num( cvar1 );
            }
        }
    }
    else if( equal( Msg, "#Round_Draw" ) )  {
    	for( new i = 0; i < pnum; i++ ) {
     		id = players[ i ];
         	if( Guess[ id ] ) {
			    ColorChat(id,GREEN,"[mort vivante] ^1Berabere! Kumara Bastigin Cephaneyi Geri Aldin");
			    zp_set_user_ammo_packs(id,zp_get_user_ammo_packs(id) + Gamble[ id ] );
			}
		Guess[ id ] = 0;
		Gamble[ id ] = get_pcvar_num( cvar1 );
  		}
    }
    
    if( task_exists( 987654 ) ) 
        remove_task( 987654 );
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/
Forum kurallarına uygun konu açmayıda unutmayın.

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

noeldayi
Mesajlar: 3167
Kayıt: Prş Oca 19, 2017 6:57 pm
Konum: 213.238.173.35
Server Ip/DNS: 213.238.173.35
Clan İsmi: Moon Gaming
İletişim:

Yardım lütfen

Mesaj gönderen noeldayi »

Kod: Tümünü seç

enum Color
{
    NORMAL = 1, // clients scr_concolor cvar color
    GREEN, // Green Color
    TEAM_COLOR, // Red, grey, blue
    GREY, // grey
    RED, // Red
    BLUE, // Blue
}

new TeamName[][] = 
{
    "",
    "TERRORIST",
    "CT",
    "SPECTATOR"
}

ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
    static message[256];

    switch(type)
    {
        case NORMAL: // clients scr_concolor cvar color
        {
            message[0] = 0x01;
        }
        case GREEN: // Green
        {
            message[0] = 0x04;
        }
        default: // White, Red, Blue
        {
            message[0] = 0x03;
        }
    }

    vformat(message[1], 251, msg, 4);

    // Make sure message is not longer than 192 character. Will crash the server.
    message[192] = '^0';

    static team, ColorChange, index, MSG_Type;
    
    if(id)
    {
        MSG_Type = MSG_ONE;
        index = id;
    } else {
        index = FindPlayer();
        MSG_Type = MSG_ALL;
    }
    
    team = get_user_team(index);
    ColorChange = ColorSelection(index, MSG_Type, type);

    ShowColorMessage(index, MSG_Type, message);
        
    if(ColorChange)
    {
        Team_Info(index, MSG_Type, TeamName[team]);
    }
}

ShowColorMessage(id, type, message[])
{
    message_begin(type, get_user_msgid("SayText"), _, id);
    write_byte(id)        
    write_string(message);
    message_end();    
}

Team_Info(id, type, team[])
{
    message_begin(type, get_user_msgid("TeamInfo"), _, id);
    write_byte(id);
    write_string(team);
    message_end();

    return 1;
}

ColorSelection(index, type, Color:Type)
{
    switch(Type)
    {
        case RED:
        {
            return Team_Info(index, type, TeamName[1]);
        }
        case BLUE:
        {
            return Team_Info(index, type, TeamName[2]);
        }
        case GREY:
        {
            return Team_Info(index, type, TeamName[0]);
        }
    }

    return 0;
}

FindPlayer()
{
    static i;
    i = -1;

    while(i <= get_maxplayers())
    {
        if(is_user_connected(++i))
        {
            return i;
        }
    }

    return -1;
} 
includeden sonra bunu ekleyın sorun kalkar yapamayanlar için.

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

Konu Sahibi
ediz
Mesajlar: 46
Kayıt: Pzr Oca 28, 2018 10:31 pm
Clan İsmi: Carbon
İletişim:

Yardım lütfen

Mesaj gönderen ediz »

Arkadaşlar ikinize de teşekkür ederim; ancak berabere bittiğinde cephaneyi hala geri vermiyor. Ona da bir bakar mısınız?

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

ShooTeR
Mesajlar: 4496
Kayıt: Çrş Ağu 16, 2017 10:35 pm
Server Ip/DNS: CSXX.CSDURAGI.COM
Clan İsmi: NoMercy

Yardım lütfen

Mesaj gönderen ShooTeR »

ediz yazdı: Pzr Şub 11, 2018 3:41 pm Arkadaşlar ikinize de teşekkür ederim; ancak berabere bittiğinde cephaneyi hala geri vermiyor. Ona da bir bakar mısınız?
Bet sisteminin amacı odur zaten berabere biterse 2 tarafta kaybeder.

Link:
Linklerini gizle
Linki Kopyala
Cevapla