Hello, dear Facepunch users. I have a very dumb question, i think. But please help me:
The problem is: when i creating a simple script like:
[CODE]drawsmthnow = true
hook.Add("PostDrawHUD", "STMTHLIKEHUD", function()
if drawsmthnow == true then
draw.RoundedBox(2, 0, 0, 100, 100, Color(0, 0 ,0, 255))
end
end)
[/CODE]
this black box appears only when i change lua file, but why? Why not righ after join?
[QUOTE=overlorder2;48565062]Hello, dear Facepunch users. I have a very dumb question, i think. But please help me:
The problem is: when i creating a simple script like:
[CODE]drawsmthnow = true
hook.Add("PostDrawHUD", "STMTHLIKEHUD", function()
if drawsmthnow == true then
draw.RoundedBox(2, 0, 0, 100, 100, Color(0, 0 ,0, 255))
end
end)
[/CODE]
this black box appears only when i change lua file, but why? Why not righ after join?[/QUOTE]
[code]
if drawsmthnow == true then
[/code]
you don't need this, using
[code]if drawsmthnow then
[/code]
will already evaluate if 'drawsmthnow' is 1.
make sure you put it in the right place like autorun etc
use avast
[QUOTE=tyguy;48565379][code]
if drawsmthnow == true then
[/code]
you don't need this, using
[code]if drawsmthnow then
[/code]
will already evaluate if 'drawsmthnow' is 1.
make sure you put it in the right place like autorun etc[/QUOTE]
Thanks a lot!
Sorry, you need to Log In to post a reply to this thread.