|
| 17 Feb 2014 01:55 PM |
myTab = {}
game.Players.PlayerRemoving:connect(function(player) player:SaveString("Points",player.PlayerGui.PlayerCard.Points.Text) end)
game.Players.PlayerAdded:connect(function(player) player:WaitForDataReady() player.PlayerGui.PlayerCard.Points.Text = player:LoadString("Points") wait(1) table.insert(t, tostring(player.PlayerGui.PlayerCard.Points.Text)) HTTP = game:GetService("HttpService") S = HTTP:JSONEncode(myTab) HTTP:PostAsync("http://example.org/json-table", S) end)
Part that errors:
wait(1) table.insert(t, tostring(player.PlayerGui.PlayerCard.Points.Text)) HTTP = game:GetService("HttpService") S = HTTP:JSONEncode(myTab) HTTP:PostAsync("http://example.org/json-table", S) print("Works")
Won't print 'Works' I tested it |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2014 01:59 PM |
Bump
I guess I won't get any replies, might be too difficult :(
Emotional :3 |
|
|
| Report Abuse |
|
|
subenari
|
  |
| Joined: 23 Mar 2011 |
| Total Posts: 116 |
|
|
| 17 Feb 2014 02:07 PM |
| HttpService can only be used in a game server |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2014 03:05 PM |
| I tested it, won't change the text either. |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Feb 2014 01:00 AM |
Wow it's like people that are on at 1AM don't know what HTTPService, LoadString and SaveString is. |
|
|
| Report Abuse |
|
|