generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: string.sub problems

Previous Thread :: Next Thread 
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
08 Jul 2012 08:38 PM
price = 0
player = 0
run = true
list = ""
script.Name = "Auto Balancer"
script.Parent = Workspace
nouser = {"1518NICENICKEY"}

function Chat(msg)
print("inside")
if msg=="istop/" then
run=false
end

if msg=="irun/" then
run=true
end

if string.sub(msg,1,5)=="iadd/" then
play = game.Players:findFirstChild(string.sub(msg,6))
if play ~= nil then
table.insert(nouser,play)
end
end


if string.sub(msg,1,5)=="irem/" then
play = game.Players:findFirstChild(string.sub(msg,6))
print("in")
if play then
print("in")
for b=1,#nouser do
print("in")
if nouser[b]==play then
print("in")
table.remove(nouser,play)
end
end
end
end
end

game.Players["1518NICENICKEY"].Chatted:connect(Chat)


while true do
if run==true then
if msg==nil then
msg = Instance.new("Message")
msg.Parent = Workspace
end
for b=1,#nouser do
list = list.. " " ..nouser[b]
end
msg.Text = list
else
if msg~=nil then
msg:Remove()
end
end
list = ""
wait(0.5)
end


When saying
irem/151
The output shows
inside
in

and never removed 1518NICENICKEY from the string.
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
08 Jul 2012 09:21 PM
Bump.
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
09 Jul 2012 12:14 AM
No really? B-U-M-P..
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
09 Jul 2012 11:37 AM
Your kidding me!
B--U--M--P
>:O
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
10 Jul 2012 02:12 PM
UGGGG!@#1!
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
10 Jul 2012 02:17 PM
*you're
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
10 Jul 2012 02:25 PM
Dont be like that >_>.. I want help, not grammer fixxing
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
10 Jul 2012 02:30 PM
I waited over 12 hours for this fix, SOMEONE COME ON.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image