Witam,
Podczas kompilacji prostego pluginu pojawił mi się błąd.Jak go naprawić?
1) PLUGIN
#include <amxmodx> #include <fun> #define PLUGIN "PLUG" #define VERSION "1.0" #define AUTHOR "Dawid" new uzyl[33] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /dodajhp","hp") register_event("HLTV", "NowaRunda", "a", "1=0", "2=0"); } public client_connect(id) { uzyl[id]=false } public hp(id) { if(!is_user_alive(id)) { client_print(id, print_chat, "Niestety, ale jestes niezywy i nie mozesz uzyc tej komendy"); return PLUGIN_CONTINUE; } if(uzyl[id]) { client_print(id,print_chat, "Komenda dostepna jest tylko raz na runde"); return PLUGIN_CONTINUE; } set_user_health(id, 150) client_print(id,print_chat, "Dodano Ci 150HP!"); uzyl[id] = true } public NowaRunda() { for(new id = 1; id <= get_maxplayers(); id++) { uzyl[id] = false } }
2) BŁĄD
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Teamkol.sma(36) : warning 209: function "hp" should return a valueHeader size: 336 bytesCode size: 788 bytesData size: 828 bytesStack/heap size: 16384 bytes; estimated max. usage=40 cells (160 bytes)Total requirements: 18336 bytes1 Warning.Done.
Z góry dzięki za pomoc.