1
LUA ERROR: attempt to call a nil value
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
function at_kill(id) local wwp = player(id,"weapontype") 				for _,id in pairs (player(0, "table")) do 	if wwp==4 then glockZ[id] = glockZ[id] >= 5 and 5 or glockZ[id] + 1 if glockZ[id] > 5 then glockZ[id] = 5 end 	elseif wwp==2 then uspZ[id] = uspZ[id] >= 10 and 10 or uspZ[id] + 1 if uspZ[id] > 10 then uspZ[id] = 10 end 	end 				end end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
function at_kill(id) local wwp = player(id,"weapontype") 	if wwp==4 then 			for _,id in pairs (player(0, "table")) do glockZ[id] = glockZ[id] >= 5 and 5 or glockZ[id] + 1 if glockZ[id] > 5 then glockZ[id] = 5 end 			end 	elseif wwp==2 then 			for _,id in pairs (player(0, "table")) do uspZ[id] = uspZ[id] >= 10 and 10 or uspZ[id] + 1 if uspZ[id] > 10 then uspZ[id] = 10 end 			end 	end end
Thank you so much :3, helpers
edited 1×, last 10.12.14 05:04:49 am