Witam mam problem z tymi pluginami https://amxx.pl/topi...-bullet-damage/ - https://amxx.pl/topic/96978-rangi/
Mianowicie plugin z rangami podejrzewam zajmuje hud i w ten o to sposób czasem nie widać otrzymanego dmg
O to sma pluginu ranga.amxx przestawiłem tam pozycje wyświetlania wiadomości hud, i chciałem tam dodać jeszcze informacje dotyczącą sieci ale zupełnie plugin odmówił posłuszeństwa , prawdopodobnie plugin ma błąd w składni którego nie dostrzegam.
******* SMA
/* Plugin generated by AMXX-Studio By spiderman, requested by spiderman */ #include <amxmodx> #include <amxmisc> #include <csx> #define PLUGIN "Ranga" #define VERSION "1.0" #define AUTHOR "spiderman" #define TASK 666 public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) } public client_connect(id) { if(is_user_bot(id)) return new param[1] param[0] = id set_task(0.1,"rank",TASK+id,param,1,"b") } public client_disconnect(id) if(task_exists(TASK+id)) remove_task(TASK+id) public rank(param[]) { new id = param[0] static stats[8], body[8] get_user_stats(id, stats, body) new ranga[30] if ( stats[0] >= 0 && stats[0] <= 29) format(ranga,29,"Silver I") else if ( stats[0] >= 30 && stats[0] <= 59) format(ranga,29,"Silver II") else if ( stats[0] >= 60 && stats[0] <= 119) format(ranga,29,"Silver III") else if ( stats[0] >= 120 && stats[0] <= 209) format(ranga,29,"Silver IV") else if ( stats[0] >= 210 && stats[0] <= 324) format(ranga,29,"Silver V") else if ( stats[0] >= 325 && stats[0] <= 499) format(ranga,29,"Silver VI") else if ( stats[0] >= 500 && stats[0] <= 729) format(ranga,29,"Gold I") else if ( stats[0] >= 730 && stats[0] <= 999) format(ranga,29,"Gold II") else if ( stats[0] >= 100 && stats[0] <= 1399) format(ranga,29,"Gold III") else if ( stats[0] >= 1400 && stats[0] <= 1849) format(ranga,29,"Gold IV") else if ( stats[0] >= 1850 && stats[0] <= 2299) format(ranga,29,"Guardian I") else if ( stats[0] >= 2300 && stats[0] <= 2899) format(ranga,29,"Guardian II") else if ( stats[0] >= 2900 && stats[0] <= 3549) format(ranga,29,"Master Guardian") else if ( stats[0] >= 4200 && stats[0] <= 4999) format(ranga,29,"Elite Guardian") else if ( stats[0] >= 5000 && stats[0] <= 5899) format(ranga,29,"Legendarny Orzel") else if ( stats[0] >= 5900 && stats[0] <= 6899) format(ranga,29,"Mistrzowski Legendarny Orzel") else if ( stats[0] >= 6900 && stats[0] <= 7999) format(ranga,29,"Supreme") else if ( stats[0] >= 8000 && stats[0] <= 9299) format(ranga,29,"Global Elite") set_hudmessage(255, 255, 255, 0.01, 0.20) show_hudmessage(id, "Ranga: %s^nZabojstw: %d",ranga,stats[0]) } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ ansicpg1250\\ deff0\\ deflang1045{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par } */
Chciałbym to jeszcze dodać w ten kod ale coś nie idzie nw w czym błąd ;/
set_hudmessage(255, 255, 255, 0.01, 0.20) show_hudmessage(id, "Ranga: %s^nZabojstw: %d",ranga,stats[0]) set_hudmessage(255, 255, 255, 0.01, 0.25) show_hudmessage(id, "Moja sieć.eu")
i przy kompilacji tego pluginu występuje Warning 217 : Loose indentation
Warning 217 : Loose indentation
Prosił bym o pomoc i prawienia gryzących się pluginów.