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 Expected

Previous Thread :: Next Thread 
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
19 Jan 2013 10:34 AM
All it says is String Expected


function onPlayerChatted(message, player)
nmessage = player.Name..": "..message
_G.testpost(nmessage, player.Name)
end

function onPlayerEntered(player)
player.Chatted:connect(function (message) onPlayerChatted(message, player) end)
end

game.Players.ChildAdded:connect(onPlayerEntered)
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
19 Jan 2013 10:39 AM
I can't give you advice because I don't know what _G.testpost() is.

I recommend changing your connection line to PlayerAdded instead of ChildAdded. That's all I can say. And where's the error at? Line?
Report Abuse
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
19 Jan 2013 10:41 AM
It skipped the line in the output, onChatMessage: String Expected
Report Abuse
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
19 Jan 2013 10:44 AM
_Gtestpost()



_G.testpost = function(posting, player)
print("Testing")
local players = game.Players:GetPlayers()
for i=1, #players do
local mainframe = players[i].PlayerGui.Main.Frame
local post, pic = posting, "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..player
for i=5, 1, -1 do
local frame = mainframe["Frame"..i]
local post = frame.postframe.post
local pic = frame.picture.pic
post, post.Text = post.Text, post
pic, pic.Image = pic.Image, pic
end
end
end
Report Abuse
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
19 Jan 2013 06:32 PM
Bump
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