Witam, mam problem z kompilacja rang. Chcialbym zrobic zmiane rangi co kazdy kill, to jest dopiero poczatek, chcialem przetestowac, ale sie nie kompiluje.
Czy w tych linijkach jest cos nie tak ?
if ( stats[0] = 0) format(ranga,29,"tekst 1000") else if ( stats[0] = 1 ) format(ranga,29,"Tekst 999") else if ( stats[0] = 2 ) format(ranga,29,"Tekst 998") else if ( stats[0] >= 3 ) format(ranga,29,"Tekst")
/* Plugin generated by AMXX-Studio By Sn!ff3r, requested by Myszax */ #include <amxmodx> #include <amxmisc> #include <csx> #define PLUGIN "Rangi" #define VERSION "1.0" #define AUTHOR "Sn!ff3r" #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(1.0,"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) format(ranga,29,"tekst 1000") else if ( stats[0] = 1 ) format(ranga,29,"Tekst 999") else if ( stats[0] = 2 ) format(ranga,29,"Tekst 998") else if ( stats[0] >= 3 ) format(ranga,29,"Tekst") set_hudmessage(255, 255, 255, 0.15, 0.55) show_hudmessage(id, "Ranga: %s^nZabojstw: %d",ranga,stats[0]) }<div class="info">Serwer Counter Strike 1.6.</div>