• whats wrong with my code?
    8 replies, posted
-snip
Firstly, post errors - if any. Also, you should try using :SetText() on those buttons.
For DButton1 and DButton2, you forgot to end the DoClick functions. So you need to do this: [lua]DButton1.DoClick = function() --Code when button is clicked end DButton2.DoClick = function() --Code when button is clicked end[/lua]
According to your name, "BananasRP", I'm assuming you're running a community depending on a gamemode you are running. If so, god help them(If he existed..). Anyway end your doclick functions. Lol I'm so late. I didn't hit post for 10 minutes cause I got a phone call, WakeboarderCWB beat me to it.
[QUOTE=LauScript;28118542]According to your name, "BananasRP", I'm assuming you're running a community depending on a gamemode you are running. If so, god help them(If he existed..). Anyway end your doclick functions. Lol I'm so late. I didn't hit post for 10 minutes cause I got a phone call, WakeboarderCWB beat me to it.[/QUOTE] btw, you scammed me. I asked you to make me a weed plant and npc. you didn't. -.-
[QUOTE=BananasRP;28118664]btw, you scammed me. I asked you to make me a weed plant and npc. you didn't. -.-[/QUOTE] I asked you not to cause unneeded drama, yet you still start it. Also, you should read [url]http://wiki.garrysmod.com/?title=Functions[/url]
I got this stuff working.
[QUOTE=BananasRP;28119580]I got this stuff working.[/QUOTE] Alright, but you should really read what zzaacckk posted. Remember that all functions, if statements, for loops need to have an end.
-snip
Sorry, you need to Log In to post a reply to this thread.