Yeah gd totally agree with that m8 was just getting the first bits working, going to try tables next to save all the individual filesaves, then hopefully better it, i no scripter really but im slowly getting there.
EDIT:
ok ive re written the main rank script into tables but im finding that now the ranks go up to lance corporal and no futher? any ideas why guys plz?
g_kills = 0
g_rank = 0
g_rank = {}
g_rank[1] = "Lance Corporal"
g_rank[2] = "Corporal"
g_rank[3] = "Sergent"
g_rank[4] = "Staff Sergent"
g_rank[5] = "Company Sgt Major"
g_rank[6] = "Regimental Sgt Major"
g_rank[7] = "Second Leiutenant"
g_rank[8] = "Leiutenant"
g_rank[9] = "Captain"
g_rank[10] = "Major"
g_rank[11] = "Lieutenant Colonel"
g_rank[12] = "Colonel"
g_rank[13] = "Brigadier"
g_rank[14] = "Major General"
g_rank[15] = "Leiutenant_General"
g_rank[16] = "General"
g_rank[17] = "Field_Marshal"
function heranks2_init(e)
end
function heranks2_main(e)
TextCenterOnXColor(50,91.5,3,"Rank",10,255,10)
if g_kills == 0 then
TextCenterOnXColor(50,98,3,"Trooper",10,255,10)
elseif g_kills <= 1 then
g_rank [1] = 1
TextCenterOnXColor(50,98,3,"Lance Corporal",10,255,10)
elseif g_kills <= 2 then
g_rank [2] = 1
TextCenterOnXColor(50,98,3,"Corporal",10,255,10)
elseif g_kills <= 3 then
g_rank [3] = 1
TextCenterOnXColor(50,98,3,"Sergent",10,255,10)
elseif g_kills <= 4 then
g_rank [4] = 1
TextCenterOnXColor(50,98,3,"Staff Sergent",10,255,10)
elseif g_kills <= 5 then
g_rank [5] = 1
TextCenterOnXColor(50,98,3,"Company Sgt Major",10,255,10)
elseif g_kills <= 6 then
g_rank [6] = 1
TextCenterOnXColor(50,98,3,"Regimental Sgt Major",10,255,10)
elseif g_kills <= 7 then
g_rink [7] = 1
TextCenterOnXColor(50,98,3,"Second Leiutenant",10,255,10)
elseif g_kills <= 8 then
g_rank [8] = 1
TextCenterOnXColor(50,98,3,"Leiutenant",10,255,10)
elseif g_kills <= 9 then
g_rank [9] = 1
TextCenterOnXColor(50,98,3,"Captain",10,255,10)
elseif g_kills <= 10 then
g_rank [10] = 1
TextCenterOnXColor(50,98,3,"Major",10,255,10)
elseif g_kills <= 11 then
g_rank [11] = 1
TextCenterOnXColor(50,98,3,"Lieutenant Colonel",10,255,10)
elseif g_kills <= 12 then
g_rank [12] = 1
TextCenterOnXColor(50,98,3,"Colonel",10,255,10)
elseif g_kills <= 13 then
g_rank [13] = 1
TextCenterOnXColor(50,98,3,"Brigadier",10,255,10)
elseif g_kills <= 14 then
g_rank [14] = 1
TextCenterOnXColor(50,98,3,"Major General",10,255,10)
elseif g_kills <= 15 then
g_rank [15] = 1
TextCenterOnXColor(50,98,3,"Leiutenant General",10,255,10)
elseif g_kills <= 16 then
g_rank [16] = 1
TextCenterOnXColor(50,98,3,"General",10,255,10)
elseif g_kills <= 17 then
g_rank [17] = 1
TextCenterOnXColor(50,98,3,"Field Marshal",10,255,10)
end
end
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel
I only smile because i have absolutely no idea whats going on