http://cs2d.org/validate/
Sourcecode:
http://codepad.org/vRQx1O8A
edited 1×, last 19.03.10 06:30:33 pm
function gg.relevel() gg.pmin = gg.maxlvl;gg.pmax = gg.minlvl;local n = 0 ; local x = 0 ; for k, v in pairs(gg.players) do;local lvl = v.level ; if lvl < gg.pmin and lvl > gg.minlvl then gg.pmin = lvl end ; if lvl > gg.pmax and lvl <= gg.maxlvl then gg.pmax = lvl end;if lvl >= gg.minlvl then ; n = n+1 ;x = x+lvl ;end; end ;gg.pavg = math.floor(x/n); end
function gg.relevel() 	gg.pmin = gg.maxlvl 	gg.pmax = gg.minlvl 	local n = 0 	local x = 0 	for k, v in pairs(gg.players) do 		local lvl = v.level 		if lvl < gg.pmin and lvl > gg.minlvl then 			gg.pmin = lvl 		end 		if lvl > gg.pmax and lvl <= gg.maxlvl then 			gg.pmax = lvl 		end 		if lvl >= gg.minlvl then 			n = n+1 			x = x+lvl 		end 	end 	gg.pavg = math.floor(x/n) end
a = 5 b = 6 if(a > b) then print("hello") end
1 a = 5 2 b = 6 3 if(a > b) then 4 print("hello") 5 end