jak się tego ustrojstwa pozbyc i co źle jest że to wyskakuje? ;d Kompiluje się normalnie ale ale te warningi troszke denerwują
Warning: Loose indentation on line 21
new kolor1 = random_num(0,255)
Warning: Loose indentation on line 25
set_hudmessage(kolor1, kolor2, kolor3, 0.10, 0.1, 1, 6.0, -1.0,0.1,0.1)
kod pluga
#include <amxmodx>
#define PLUGIN "interp+raty"
#define VERSION "1.0"
#define AUTHOR "ktos"
new gSyncMessage4;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(30.0, "ustaw_raty", _, _, _, "b");
gSyncMessage4 = CreateHudSyncObj();
}
public ustaw_raty() {
client_cmd(0, "ex_interp 0.01");
client_cmd(0, "rate 25000");
client_cmd(0, "cl_updaterate 101");
client_cmd(0, "cl_cmdaterate 101");
new kolor1 = random_num(0,255)
new kolor2 = random_num(0,255);
new kolor3 = random_num(0,255);
set_hudmessage(kolor1, kolor2, kolor3, 0.10, 0.1, 1, 6.0, -1.0,0.1,0.1)
set_hudmessage(kolor1, kolor2, kolor3, 0.10, 0.1, 1, 6.0, 1.0)
ShowSyncHudMsg(0,gSyncMessage4, "Twoje ustawienia rate zostały automatycznie zmieniony.");
}
Użytkownik TecHnoO edytował ten post 03.02.2013 12:40