CSPLague
Hata - Printable Version

+- CSPLague (https://www.csplague.com)
+-- Forum: CS 1.6 Plugin (Eklenti) Bölümü (https://www.csplague.com/forumdisplay.php?fid=6)
+--- Forum: [İSTEK] Cs 1.6 Plugin İstek Bölümü (https://www.csplague.com/forumdisplay.php?fid=80)
+---- Forum: Çözülmüş İstekler (https://www.csplague.com/forumdisplay.php?fid=87)
+---- Thread: Hata (/showthread.php?tid=8021)



Hata - Nefesim - 13-07-13

Şimdi Şu Aşağıdaki Komutlarda Nerde hata var combile ederken chat_coloru gösteriyor fakat.

PHP Code:
#include <amxmodx>
#include <fun>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fakemeta>
#include <engine>
#include <colorchat>

#define PLUGIN "CTMenu"
#define VERSION "1.0.0"
#define AUTHOR "Nefesim" 

include ettim colorchatı fakat hata veriyor sorun nerdee ?



PHP Code:
case 1: {            
set_user_godmode(id,1)            
server_cmd("amx_heal @CT 99999")            
chat_color(id,"!t[CSP] !gCT God Mod Aktif Edildi.!")            
chat_color(id,"!t[CSP] !gCT God Mod Aktif Edildi.!")





Cevap: Hata - akcaliberkk - 13-07-13

colorchat kütüphanesinin fonksiyonu farklı. Bu color_chat stock versiyonu.

ColorChat(id, GREEN, "^3[CSP] ^4CT God Mod Aktif Edildi.!")

olarak değiştir. Bu arada renk kodları:

^1 - Normal - con_color rengi - genelde sarı
^3 - takım rengi
^4 - yeşil


Cevap: Hata - Nefesim - 14-07-13

Peki bu fonksiyonu farklı olanın incsini nerden bulabiliriz.

Burada konu çözülmüşlere taşınsın.

burada yardım için teşekkürler.


Cevap: Hata - Pikachu - 14-07-13

Bu fonksiyonun başka kütüphanesi yok. Başka şekilde yalnızca stock sayesinde yapabilirsin.
chat_color stock:


PHP Code:
stock chat_color(const id, const input[], any:...) 

    new 
count 1players[32
    static 
msg[191
    
vformat(msg190input3
     
    
replace_all(msg190"!g""^4"
    
replace_all(msg190"!y""^1"
    
replace_all(msg190"!t""^3"
    
replace_all(msg190"!team2""^0"
     
    if (
idplayers[0] = id; else get_players(playerscount"ch"
    { 
        for (new 
0counti++) 
        { 
            if (
is_user_connected(players[i])) 
            { 
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players
                
write_byte(players); 
                
write_string(msg); 
                
message_end(); 
            } 
        } 
    } 


Örnek Kullanım:

chat_color(id,"!gOrnek !yKullanim")

Kullanımı:
Chat_Color Stock unu plugin de bir yere yapıştır -herhangi bir public içine değil- . Daha sonra örnek kullanımda yazdığım şekilde kullanabilirsin.[/i][/i][/i]


Cevap: Hata - Nefesim - 14-07-13

Tamam Anladım.


Cevap: Hata - akcaliberkk - 14-07-13

Çözülmüş İsteklere taşındı.