So i am making some kind of loading animation and i want to print \
but i know \ means something special in Lua and it does not work.
Thanks
- House
How to print \ in Lua
Started by houseofkraft, Dec 11 2016 04:41 PM
2 replies to this topic
#1
Posted 11 December 2016 - 04:41 PM
#2
Posted 11 December 2016 - 04:49 PM
Just escape \ in the string:
This is used for some other stuff too. eg linebreaks:
print "Here you go -> \\"
This is used for some other stuff too. eg linebreaks:
print "line 1\nline2"(Although I'm not sure if print implemented that)
Edited by H4X0RZ, 11 December 2016 - 04:50 PM.
#3
Posted 14 December 2016 - 12:10 PM
Thanks.
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











