Garry's Mod

Garry's Mod

SWEP Construction Kit
Xenthio 27 Feb, 2019 @ 9:29pm
i found a fix for models not working
go into the swep base code and simply use find and replace to replace "//" with "--"

for some reason the developer used "//" for code comments which is not the correct prefix instead of "--" for code comments
Last edited by Xenthio; 27 Feb, 2019 @ 9:31pm
< >
Showing 1-3 of 3 comments
Legoleader139 6 Mar, 2019 @ 12:45am 
So, little question...

I'm making a small, useless-ish swep in a way.
And I'm going through it and uh...

... I can't find any "//" in my code. The only thing that comes close is "/" and "=".
Got any answers?
Xenthio 9 Mar, 2019 @ 7:44pm 
Originally posted by Legoleader139:
So, little question...

I'm making a small, useless-ish swep in a way.
And I'm going through it and uh...

... I can't find any "//" in my code. The only thing that comes close is "/" and "=".
Got any answers?

i mean replace any //'s in the swep base.
Lion 11 Feb, 2021 @ 7:54am 
// works
lua is based of of one of the c languages which support //, -- is lua but // also works
< >
Showing 1-3 of 3 comments
Per page: 1530 50