This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
YaYaBinks3's profile picture

_G help

Started by YaYaBinks3, 26 July 2012 - 07:57 AM
YaYaBinks3 #1
Posted 26 July 2012 - 09:57 AM
Help!
I did a little research on _G with CC.
I've used rawset, to make a global variable.
I have a script running on a monitor that prints a g value.
I get this:

bios:48: bad argument: string expected, got nil

Why? Rawset has something wrong?
brett122798 #2
Posted 26 July 2012 - 10:16 AM
Hey, you were on my CC Server months ago.
YaYaBinks3 #3
Posted 26 July 2012 - 10:30 AM
Oh yeah! Have you restarted that?
Luanub #4
Posted 26 July 2012 - 10:33 AM
Probably need the code to be able to help any..
brett122798 #5
Posted 26 July 2012 - 08:18 PM
Oh yeah! Have you restarted that?
Eh, I don't run the ComputerCraft Server any longer, but I'm getting back into the mod and I'm making my own OS.
YaYaBinks3 #6
Posted 27 July 2012 - 09:54 AM
Aw. Ok.
sjele #7
Posted 27 July 2012 - 10:21 AM
I think you might need to add ("string in here"),
This might be 200% wrong since we got no code but adding " might fix it.


--If code is like this before you add stuff
print(showtxtonscreen)

this might fix the error


print("textonscreen")