Otóż problem jest taki, napisałem plugin który po wpisaniu /czas powinien pokazywać aktualną datę, lecz nie pokazuje nic. 0 reakcji na wpisanie komendy.
#include <amxmodx> #include <amxmisc> #define PLUGIN "Data" #define VERSION "1.0" #define AUTHOR "b0niek" public plugin_ini() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /czas", "czas") } public czas(id) { new CurrentTime[11] get_time("%m:%d:%Y",CurrentTime,10) client_print(id,print_chat,"The current time is: %s",CurrentTime) }
Co tu może być źle?Z góry dziękuję za pomoc.
Edit: Przepraszam, zaraz po napisaniu tematu dopatrzyłem się błędu. zgubiłem "t" i dałem coś takiego "public plugin_ini()" . Przepraszam za głupi problem i zbędny temat.
Użytkownik b0niek edytował ten post 08.01.2011 10:53