• Error on table.insert!
    2 replies, posted
[CODE][ERROR] gamemodes/terrortown/entities/weapons/aa.lua:49: ')' expected near ',' 1. unknown - gamemodes/terrortown/entities/weapons/aa.lua:0 [/CODE] I have been getting that error on this line, and I cannot figure out why. Can anyone help? [CODE] table.insert(pointTable, i, (mathstartpos, 5, mathpos + Vector(0, uphight, 0), Color(255,255,255))[/CODE]
table.insert(pointTable, i, (mathstartpos, 5, mathpos + Vector(0, uphight, 0)), Color(255,255,255)) You were missing a ) behind the vector
I don't know what the problem was, but I fixed it by turning it into pointTable[1] = {mathstartpos, 5, mathpos + Vector(0, uphight, 0), Color(255,255,255)}
Sorry, you need to Log In to post a reply to this thread.