[ERROR HELP] [RunString:171] attempt to index field '?' (a nil value)
3 replies, posted
So I keep getting this same error, I have no idea on what to do.
I get this error: [RunString:171] attempt to index field '?' (a nil value)
Link: [url]http://pastebin.com/PaagdQWg[/url]
CustomerChoice:GetSelectedItems() returns nil, so you probably didn't select anything before pressing the button. More info here: [B][URL="http://wiki.garrysmod.com/?title=DComboBox.GetSelectedItems"]DComboBox.GetSelectedItems [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL][/B]
Fixed it!
Just selected the first person on the server for first 2.
However why does Combo Box say my prices are strings?
When I selected it I had to put the number in quotes "50"
[editline]19th November 2011[/editline]
[img]http://screensnapr.com/e/M1ajxY.png[/img]
Here it is btw.
Your prices [B]are[/B] strings, at least in the ComboBox. Use [b][url=http://wiki.garrysmod.com/?title=G.tonumber]G.tonumber [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] to convert them back to numbers.
Sorry, you need to Log In to post a reply to this thread.