• Problem in this code?
    5 replies, posted
[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 [/CODE] [CODE] [ERROR] addons/xpsystem/lua/autorun/shared.lua:4: '=' expected near 'end' 1. unknown - addons/xpsystem/lua/autorun/shared.lua:0 [/CODE] Anyone here gotta fix? Thanks!
[code] function xp1() xp-- What exactly are you trying to do with this? It is throwing you the error. end [/code]
:snip: Ninja'd
[QUOTE=AK to Spray;48439662][code] function xp1() xp-- What exactly are you trying to do with this? It is throwing you the error. end [/code][/QUOTE] Its a variable. I'm trying to have it function so timer.Create works properly.
[code] timer.Create( "SomeTimer", 10, 0, xp ) [/code] I think you meant to call xp1.
[QUOTE=Nick78111;48440380][code] timer.Create( "SomeTimer", 10, 0, xp ) [/code] I think you meant to call xp1.[/QUOTE] Ugh thanks man I've been tired lately. I'll test it out tommorow
Sorry, you need to Log In to post a reply to this thread.