Garry's Mod

Garry's Mod

SWEP Construction Kit
Xenthio 2019 年 2 月 27 日 下午 9:29
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
最後修改者:Xenthio; 2019 年 2 月 27 日 下午 9:31
< >
目前顯示第 1-3 則留言,共 3
Legoleader139 2019 年 3 月 6 日 上午 12:45 
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 2019 年 3 月 9 日 下午 7:44 
引用自 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 2021 年 2 月 11 日 上午 7:54 
// works
lua is based of of one of the c languages which support //, -- is lua but // also works
< >
目前顯示第 1-3 則留言,共 3
每頁顯示: 1530 50