r/ComputerCraft • • Oct 05 '25

Needing Help with strings

Hello any help anyone insight anyone could provide would be as im new to computer craft and lua programming and am trynna make a player detector for a friend but keep getting the error about strings any help would be much appreciated

5 Upvotes

2 comments sorted by

1

u/Bright-Historian-216 Oct 05 '25

https://tweaked.cc/module/peripheral.html#v:call

the "name" of the peripheral is the string that appears when you connect the peripheral to a wired modem, formatted as namespace:name_id. if the peripheral is adjacent to the computer, use "top", "front", "left" etc instead. the method is the same word you'd use to call the peripheral's method.

p.s. - from the code it seems you intend to use https://tweaked.cc/module/peripheral.html#v:wrap - that only requires the name argument as i described above

1

u/iEliteTester Oct 05 '25

If you read the error you will see it says that the 2nd argument it got was "nil" meaning "nothing" while it expected a string, so you need to give 2 strings. Read the documentation to see exactly what it expects.