• unexpected symbol near '|'
    2 replies, posted
I don't gmod 13 takes the "cheese = FK_CL | FK_UP | FK_DOWN" anymore. What should i replace | with? :) I tried || but it still reports the errror. "unexpected symbol near '|'" Thanks for helping me. :)
[code]cheese = bit.bor(FK_CL, FK_UP, FK_DOWN)[/code]
Bit operators were replaced with the jit bit library in gmod 13. You can take a look at it here [url]http://wiki.luajit.org/NYI#Bit-Library[/url] To fix that specific piece of code you would do: [lua]bit.bor(FK_CL, FK_UP, FK_DOWN)[/lua] Edit: Beat me to it :)
Sorry, you need to Log In to post a reply to this thread.