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 » Scripters
Home Search
 

Re: Issue with datastores

Previous Thread :: Next Thread 
AutoCarrot is not online. AutoCarrot
Joined: 24 Oct 2013
Total Posts: 5588
11 Aug 2016 01:09 PM
function JoinClan(Player, ClanID, AutoValidate)
if AutoValidate or (Player:GetRankInGroup(ClanID and ClanMembers:GetAsync(tostring(ClanID)))) then
local Leaderstats = Player:WaitForChild("leaderstats") --Works, stats print not nill
local Success, Details = pcall(function()
local CurrentClan = DATASTORE.GetPlayerAttribute(Player, "Clan" .. InternalVersion)
if CurrentClan then
print("Decreasing Stats")
ClanKills:IncrementAsync(ClanID, -Leaderstats.Kills.Value)
ClanDeaths:IncrementAsync(ClanID, -Leaderstats.Deaths.Value)
ClanMembers:IncrementAsync(ClanID, -1)
end
DATASTORE.SetPlayerAttribute(Player, "Clan" .. InternalVersion, ClanID)
Player.GroupID.Value = ClanID
ClanKills:IncrementAsync(ClanID, Leaderstats.Kills.Value) -- Nothing errors
ClanDeaths:IncrementAsync(ClanID, Leaderstats.Deaths.Value)
ClanMembers:IncrementAsync(ClanID, 1)
pcall(ClanBillboard, Player.Character)
end)
return Success
end
end

So, I increment a value, with something that's not nil. Then I print it out, and it's not changed. WTF?






WolfgangVonPrinz // Private Drive - Residents Only
Report Abuse
AutoCarrot is not online. AutoCarrot
Joined: 24 Oct 2013
Total Posts: 5588
11 Aug 2016 01:17 PM
This is the output happening each time:

/a/pKPlz

Other code which does similar things works.


WolfgangVonPrinz // Private Drive - Residents Only
Report Abuse
AutoCarrot is not online. AutoCarrot
Joined: 24 Oct 2013
Total Posts: 5588
11 Aug 2016 02:27 PM
b


WolfgangVonPrinz // Private Drive - Residents Only
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
11 Aug 2016 02:29 PM
what website is that lol


Report Abuse
Monadic is not online. Monadic
Joined: 03 Aug 2016
Total Posts: 731
11 Aug 2016 02:30 PM
@Time
>What website is that

Can you honestly get anymore stupid?
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
11 Aug 2016 02:32 PM
Idiot

I asked because I don't know what website this image is from

'/a/pKPlz'

It is lightshot, gyazo, ?

stfu kid god you're more of a prick than cntkillme






Report Abuse
AutoCarrot is not online. AutoCarrot
Joined: 24 Oct 2013
Total Posts: 5588
11 Aug 2016 02:32 PM
It's igur.


Add an m after the i

@Mono :(


WolfgangVonPrinz // Private Drive - Residents Only
Report Abuse
AutoCarrot is not online. AutoCarrot
Joined: 24 Oct 2013
Total Posts: 5588
11 Aug 2016 02:33 PM
Also, we think we've finally got a fix. I'll give you guys a shout if we do


WolfgangVonPrinz // Private Drive - Residents Only
Report Abuse
Monadic is not online. Monadic
Joined: 03 Aug 2016
Total Posts: 731
11 Aug 2016 02:34 PM
I honestly don't know if you're trying to troll or just being downright autistic.
You seriously don't know where '/a/pKPlz' goes?

Jesus christ my alcoholic-fetal born 12 year old step-sister is smarter than you.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
11 Aug 2016 02:34 PM
@auto which value doesn't get incremented?

I would just get rid of the pcall so you can see if anything errors.


Report Abuse
AutoCarrot is not online. AutoCarrot
Joined: 24 Oct 2013
Total Posts: 5588
11 Aug 2016 02:35 PM
Monadic's 12 year old step sister also happens to be his mother.


WolfgangVonPrinz // Private Drive - Residents Only
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
11 Aug 2016 02:37 PM
LOL




Report Abuse
Monadic is not online. Monadic
Joined: 03 Aug 2016
Total Posts: 731
11 Aug 2016 02:37 PM
Totally, and my father's a 60 year old long-time prison addict with 10 types of different STD's
Report Abuse
AutoCarrot is not online. AutoCarrot
Joined: 24 Oct 2013
Total Posts: 5588
11 Aug 2016 02:37 PM
@Time, all of them


WolfgangVonPrinz // Private Drive - Residents Only
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
11 Aug 2016 02:40 PM
@Auto i think you missed a parenthesis. try this

if AutoValidate or (Player:GetRankInGroup(ClanID) and ClanMembers:GetAsync(tostring(ClanID))) then


Report Abuse
AutoCarrot is not online. AutoCarrot
Joined: 24 Oct 2013
Total Posts: 5588
11 Aug 2016 03:04 PM
Thank you. Weird it didn't error.


WolfgangVonPrinz // Private Drive - Residents Only
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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