Proszę poprawić mi plugin Będę bardzo wdzięczny:)
/* Plugin generated by AMXX-Studio */ #include #include #define PLUGIN "rozbrajanie_c4" #define VERSION "1.0" #define AUTHOR "4you" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) new bomb = find_ent_by_model(-1, "grenade", "models/w_c4.mdl") if(is_valid_ent(bomb)) { if(cs_get_c4_defusing(bomb)) {//paka jest rozbrajana new nick[64]; new time = cs_get_c4_explode_time(index); new defuser = cs_get_user_defuse(index); if (defuser == 1) { new czas = 6; time = time - czas; get_user_name(id, nick, 63); if(time>0) { ColorChat(0, GREEN, "[Cs-Strzelaj] ^x03%s rozbraja c4 za pomoca defa. Rozbroi pake do ^x04%d ^x03sek.", nick, time); } else { ColorChat(0, GREEN, "[Cs-Strzelaj] ^x03%s nie zdarzy rozbroic c4!", nick); } else { new czas = 10; time = time - czas; get_user_name(id, nick, 63); if(time>0) { ColorChat(0, GREEN, "[Cs-Strzelaj] ^x03%s rozbraja c4! Rozbroi pake do ^x04%d ^x04sek.", nick, time); } else { ColorChat(0, GREEN, "[Cs-Strzelaj] ^x03%s nie zdarzy rozbroic c4!", nick); } } } } }
Błędy:
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team sa.sma(15) : error 017: undefined symbol "find_ent_by_model" sa.sma(16) : error 017: undefined symbol "is_valid_ent" sa.sma(18) : error 017: undefined symbol "cs_get_c4_defusing" sa.sma(21) : error 017: undefined symbol "cs_get_c4_explode_time" sa.sma(22) : error 017: undefined symbol "cs_get_user_defuse" sa.sma(27) : error 017: undefined symbol "id" sa.sma(27) : warning 215: expression has no effect sa.sma(27) : warning 215: expression has no effect sa.sma(27) : error 001: expected token: ";", but found ")" sa.sma(27) : error 029: invalid expression, assumed zero sa.sma(27) : fatal error 107: too many error messages on one line Compilation aborted. 9 Errors.