|
| 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 |
|
|
|
| 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 |
|
|
|
| 11 Aug 2016 02:27 PM |
b
WolfgangVonPrinz // Private Drive - Residents Only |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
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
|
  |
| 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 |
|
|
|
| 11 Aug 2016 02:32 PM |
It's igur.
Add an m after the i
@Mono :(
WolfgangVonPrinz // Private Drive - Residents Only |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
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 |
|
|
|
| 11 Aug 2016 02:37 PM |
@Time, all of them
WolfgangVonPrinz // Private Drive - Residents Only |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 11 Aug 2016 03:04 PM |
Thank you. Weird it didn't error.
WolfgangVonPrinz // Private Drive - Residents Only |
|
|
| Report Abuse |
|
|