Witam,stworzyłem swój pierwszy prosty plugin. Początkowo wyglądał on tak:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <colorchat> #define PLUGIN "Cennik" #define VERSION "1.0" #define AUTHOR "Bombelek" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /cennik", "Cennik"); } public cennik(id) { show_motd(id, "cennik.txt", "Cennik"); }
Potem dodałem color chat:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <ColorChat> #define PLUGIN "Cennik" #define VERSION "1.0" #define AUTHOR "Bombelek" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /cennik", "Cennik"); } public cennik(id) { show_motd(id, "cennik.txt", "Cennik"); } ColorChat(id, GREEN, "Plugin wykonal Bombelek-GG 49026405"); }
Wyskoczył error,podobno jakiejś kropki czy cos brakuje. Czekam na wasze odpowiedzi.