-[IFwsI]-
You need an account to view all sections/topics

Join the forum, it's quick and easy

-[IFwsI]-
You need an account to view all sections/topics
-[IFwsI]-
Would you like to react to this message? Create an account in a few clicks or log in to continue.

lua pls help

3 posters

Go down

lua pls help Empty lua pls help

Post by Se7en Thu Oct 29, 2015 7:35 pm

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
Se7en
Se7en
Site user
Site user

Gender : Male Posts : 1163
Points : 1342
Join date : 2013-12-07
Age : 23
Location : Israel

http://slowpoke101.forum.st/

Back to top Go down

lua pls help Empty Re: lua pls help

Post by cracker22 Thu Oct 29, 2015 7:54 pm

555 300 2 HUH DUDE TRY TO Change That
cracker22
cracker22
Site user
Site user

Gender : Male Posts : 298
Points : 384
Join date : 2015-09-16
Location : in Your cs2d :P

Back to top Go down

lua pls help Empty Re: lua pls help

Post by Nighthawk Fri Oct 30, 2015 9:48 am

Use this next time.

And here
Nighthawk
Nighthawk
-[IFwsI]- Co-Leader
-[IFwsI]- Co-Leader

Gender : Male Posts : 2426
Points : 2902
Join date : 2014-01-02
Age : 25
Location : Outside The Gates Of Your Mind

http://bit.ly/irfandahir

Back to top Go down

lua pls help Empty Re: lua pls help

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum