OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 21 Dec 2013 01:41 AM |
Line 4 bad argument #2 to 'match' (string expected, got no value) Tested online with remote error monitoring system
local m = game:GetService("MarketplaceService") local desc = m:GetProductInfo(139197592).Description game.Players.PlayerAdded:connect(function(p) if p.userId == string.match(desc) then p:Kick() end end) |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 21 Dec 2013 02:03 AM |
You are matching nothing to desc.
if string.match(desc, p.userId) then is probably what you want |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 21 Dec 2013 06:25 AM |
Still won't work. No output. |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 24 Dec 2013 04:26 PM |
| if string.match(desc, p.userId) then |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2013 04:56 PM |
| Might you need to convert the UserId to a string? |
|
|
| Report Abuse |
|
|