|
| 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
|
  |
| 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 |
|
|
|
| 19 Jan 2013 10:41 AM |
It skipped the line in the output, onChatMessage: String Expected
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|