• Help with code
    3 replies, posted
Hello, can you help me? I had a problem, I read that this is a bug due to the fact that I threw the file in the wrong folder, you can help where it should be thrown, if you can but specify the file, I'm just new to this Code [IMG]http://i.imgur.com/glfjOT4.png[/IMG] Error [IMG]http://i.imgur.com/2tpW1Iy.png[/IMG]
[url]https://facepunch.com/forumdisplay.php?f=65[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/math/random]math.random[/url] Lua is case-sensitive.
This thread should've been posted [url]https://facepunch.com/forumdisplay.php?f=65[/url] Anyway the R in random needs to be lower case.
Also, please avoid using table.HasValue (Especially in your case considering a simple comparison would work) Replace [code] if table.HasValue( { TEAM_01 }, ply:Team() ) then [/code] With [code] if ply:Team() == TEAM_01 then [/code] Read this: [url]https://wiki.garrysmod.com/page/Tables:_Bad_Habits[/url]
Sorry, you need to Log In to post a reply to this thread.