Kolor
zurawa123
15.07.2009
Mam pewien kod i chce by
!g Był kolor zielony
!n zwykły zołty
!t Tekst koloru dla teamu TT-czerwony , CT=Niebieski , Spekt-Biały
ale jak to zrobic?
ps jak ustalic z jakiego kraju jest gracz?
!g Był kolor zielony
!n zwykły zołty
!t Tekst koloru dla teamu TT-czerwony , CT=Niebieski , Spekt-Biały
ale jak to zrobic?
ps jak ustalic z jakiego kraju jest gracz?
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "Hi moje ipp" #define VERSION "1.0" #define AUTHOR "Ojciec" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) } public client_authorized(id) { new name [32] get_user_name(id, name, 31) new ip [32] get_user_ip(id, ip, 31, 1) new sid [32] get_user_authid(id, sid, 31) client_print(0, print_chat, "!g[Polski Server FFA]!nWchodzi: %s, jego ip to IP: %s jego steamid to :%s", name, ip, sid) }
naven
15.07.2009
Użyj geoip http://www.amxmodx.o... ... Findex.htm
Co do kolorów lepiej wziąć colorchat
Co do kolorów lepiej wziąć colorchat
zurawa123
15.07.2009
ale jak to uzyc bo ja to robie tak
geoip_country ( ip[], result[], [ len = 45 ] )
[ Dodano: 15-07-2009, 15:30 ]
http://www.amxmodx.o... ... Findex.htm
new GeoIP [32] geoip_country ( ip[], result[], [ len = 45 ] )i nie dziala
geoip_country ( ip[], result[], [ len = 45 ] )
[ Dodano: 15-07-2009, 15:30 ]
http://www.amxmodx.o... ... Findex.htm
mgr inż. Pavulon
15.07.2009
ale jak ty to niby robisz bo jeżeli tak jak w [code=auto:0] to chyba żartujesz...
Tu masz opis i przykład: http://amxx.pl/dokum...P,geoip_country
Tu masz opis i przykład: http://amxx.pl/dokum...P,geoip_country
zurawa123
15.07.2009
Mam 3 problemy
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "Hi moje ipp" #define VERSION "1.0" #define AUTHOR "Ojciec" new SayText; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say a","Set_a") SayText = get_user_msgid("SayText"); } public client_authorized(id) { new name [32] get_user_name(id, name, 31) new sid [32] get_user_authid(id, sid, 31) new ip[16] get_user_ip(id,ip,15,1) new kraj[46] geoip_country(ip,kraj,45) client_print(0, print_chat, "^x04[Polski Server FFA]^x03Wchodzi: %s, pochodzi z %s jego steamid to :%s", name, kraj, sid) } public client_disconnect(id) { new name [32] get_user_name(id, name, 31) new sid [32] get_user_authid(id, sid, 31) new ip[16] get_user_ip(id,ip,15,1) new kraj[46] geoip_country(ip,kraj,45) client_print(0, print_chat, "^x04[Polski Server FFA]^x03Wychodzi: %s, pochodzi z %s jego steamid to :%s", name, kraj, sid) } public Set_a(id) { kolor_text(id, "^x04 To ^x03 Dziala ^x04 SUPER !!!!") } stock kolor_text(index, const wiadomosc[]) { new text[192]; formatex(text, 191, wiadomosc); message_begin(MSG_ONE, SayText, _, index); write_byte(index); write_string(text); message_end(); }
Warning: Loose indentation on line 17- Cos nie tak z kolorowymi napisami Error: Undefined symbol "geoip_country" on line 32 Error: Undefined symbol "geoip_country" on line 46
mgr inż. Pavulon
15.07.2009
Skopana tabulacja (warn 1.) i brak include'a geoip (error 2. i 3.)
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <geoip> #define PLUGIN "Hi moje ipp" #define VERSION "1.0" #define AUTHOR "Ojciec" new SayText; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say a","Set_a") SayText = get_user_msgid("SayText"); } public client_authorized(id) { new name [32] get_user_name(id, name, 31) new sid [32] get_user_authid(id, sid, 31) new ip[16] get_user_ip(id,ip,15,1) new kraj[46] geoip_country(ip,kraj,45) client_print(0, print_chat, "^x04[Polski Server FFA]^x03Wchodzi: %s, pochodzi z %s jego steamid to :%s", name, kraj, sid) } public client_disconnect(id) { new name [32] get_user_name(id, name, 31) new sid [32] get_user_authid(id, sid, 31) new ip[16] get_user_ip(id,ip,15,1) new kraj[46] geoip_country(ip,kraj,45) client_print(0, print_chat, "^x04[Polski Server FFA]^x03Wychodzi: %s, pochodzi z %s jego steamid to :%s", name, kraj, sid) } public Set_a(id) { kolor_text(id, "^x04 To ^x03 Dziala ^x04 SUPER !!!!") } stock kolor_text(index, const wiadomosc[]) { new text[192]; formatex(text, 191, wiadomosc); message_begin(MSG_ONE, SayText, _, index); write_byte(index); write_string(text); message_end(); }
zurawa123
15.07.2009
Kolejny problem
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <geoip> #define PLUGIN "Hi moje ipp" #define VERSION "1.0" #define AUTHOR "Ojciec" new SayText; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say a","client_authorized") register_clcmd("say a","client_disconnect") SayText = get_user_msgid("SayText"); } public client_authorized(id) { new name [32] get_user_name(id, name, 31) new sid [32] get_user_authid(id, sid, 31) new ip[16] get_user_ip(id,ip,15,1) new kraj[46] geoip_country(ip,kraj,45) kolor_text(0, "^x04[Polski Server FFA]^x03Wchodzi: %s, pochodzi z %s jego steamid to :%s", name, kraj, sid) stock kolor_text(index, const wiadomosc[]) { new text[192]; formatex(text, 191, wiadomosc); message_begin(MSG_ONE, SayText, _, index); write_byte(index); write_string(text); message_end(); } public client_disconnect(id) { new name [32] get_user_name(id, name, 31) new sid [32] get_user_authid(id, sid, 31) new ip[16] get_user_ip(id,ip,15,1) new kraj[46] geoip_country(ip,kraj,45) kolor_text(0, "^x04[Polski Server FFA]^x03Wychodzi: %s, pochodzi z %s jego steamid to :%s", name, kraj, sid) stock kolor_text(index, const wiadomosc[]) { new text[192]; formatex(text, 191, wiadomosc); message_begin(MSG_ONE, SayText, _, index); write_byte(index); write_string(text); message_end(); }
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team Error: Undefined symbol "kolor_text" on line 34 Error: Invalid expression, assumed zero on line 35 Error: Undefined symbol "kolor_text" on line 35 Error: Number of arguments does not match definition on line 35 Error: Too many error messages on one line on line 35 Compilation aborted. 5 Errors. Could not locate output file C:UsersOjciecDesktopamxAmx StudioUntitled.amx (compile failed).