lua pls help
3 posters
Page 1 of 1
lua pls help
- Code:
Milk = {}
addhook("join","j_hud")
addhook("leave","l_hud")
addhook("startround","s_hud")
addhook("endround","e_hud")
function j_hud(id)
Milk[id] = image("gfx/7hud/full.png",555,300,2,id)
imagealpha(Milk[id],0.5)
end
function l_hud(id)
freeimage(Milk[id])
end
function s_hud(id)
Milk[id] = image("gfx/7hud/full.png",555,300,2,id)
imagealpha(Milk[id],0.5)
end
function e_hud(id)
freeimage(Milk[id])
end
Error is:
LUA ERROR: sys/lua/autorun/stats.lua:22: bad argument #1 to 'freeimage' (number expected, got nil)
-> [C]: in function 'freeimage'
-> sys/lua/autorun/stats.lua:22: in function
-> in Lua hook 'endround', params: 5
pls?
also i started a new topic because old is more than 2 weeks and idk i no want ban plx :c
Re: lua pls help
555 300 2 HUH DUDE TRY TO Change That
cracker22- Site user
- Gender : Posts : 298
Points : 384
Join date : 2015-09-16
Location : in Your cs2d :P
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|