error:
[ERROR] addons/advisement2/lua/autorun/client/advisement2.lua:3: '=' expected near 'if'
1. unknown - addons/advisement2/lua/autorun/client/advisement2.lua:0
my code
if (CLIENT) then
timer.Create("Advisement2", 20, 0, function( ply ) Advisement2
if !ply:IsSuperAdmin() then
local frame = vgui.Create( "DFrame" )
frame:SetTitle( "Advisement" )
frame:SetSize(220, 240)
frame:ShowCloseButton( false )
local html = vgui.Create( "HTML", frame )
html:Dock( FILL )
ads = { "https://ad.a-ads.com/870184?size=200x200", "https://ad.a-ads.com/870181?size=200x200", "https://ad.a-ads.com/870182?size=200x200"}
html:OpenURL( table.Random( ads ) )
timer.Simple( 6, function() frame:Close() end )
end
hook.Add( "DFrame", Advisement2 )
end)
end
help
Maybe I don't know how timer functions work, but don't name the function if you're just going to define the whole thing, and timer functions don't have any parameters.
I'm curious now, where did you learn to put ply in the function of a timer? This is the second time I've seen this.
'-' i maked a new post i don't know host delet then
Sorry, you need to Log In to post a reply to this thread.