Era_Gamer
|
  |
| Joined: 24 Feb 2016 |
| Total Posts: 549 |
|
|
| 08 Nov 2016 09:32 PM |
ok so
if i have a format liek this one
username:userid
EXAMPLE: Era_Gamer:17984577
How would I get the UserID to be seperate from the name itself (but it'd need to work for any name)
sorry that it's not an actual president but
go trump
- Chief Executive Officer, Era_Gamer. |
|
|
| Report Abuse |
|
|
|
| 08 Nov 2016 09:39 PM |
local function sepNameID(s) return string.sub(s,1,string.find(s,":")-1),string.sub(s,string.find(s,":")+1) end local name,id=sepNameID("Era_Gamer:17984577") print(name.."'s ID is: "..id) -->Era_Gamer's ID is: 17984577 local name,id=sepNameID("newcoolman2:7333622") print(name.."'s ID is: "..id) -->newcoolman2's ID is: 7333622
|
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
| |
|
| |
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 08 Nov 2016 10:06 PM |
PHIL KESSEL FOR PRESIDENT
If you're seeing this post, it means I'm either dead (leaving behind a very fabulous looking corpse) or my soul has been captured by pixies! |
|
|
| Report Abuse |
|
|