Problem in this code?



local xp = xp + 2
function xp1()
	xp
end
	timer.Create( "SomeTimer", 10, 0, xp )
if (SERVER) then
		
	lvl={} 
	lvl[1]={"Shitty", Color( 55,55,55,255 ), xp = 0}
	lvl[2]={"Noob", Color(155,155,155,255), xp = 50}

end


if (CLIENT) then
	


end




[ERROR] addons/xpsystem/lua/autorun/shared.lua:4: '=' expected near 'end'
  1. unknown - addons/xpsystem/lua/autorun/shared.lua:0


Anyone here gotta fix? Thanks!



function xp1()
	xp-- What exactly are you trying to do with this? It is throwing you the error.
end


:snip:

Ninja’d

Its a variable. I’m trying to have it function so timer.Create works properly.



timer.Create( "SomeTimer", 10, 0, xp )


I think you meant to call xp1.

Ugh thanks man I’ve been tired lately. I’ll test it out tommorow