Data Realms Fan Forums
http://forums.datarealms.com/

Get amount in team's funds?
http://forums.datarealms.com/viewtopic.php?f=73&t=25180
Page 1 of 1

Author:  sh33p [ Tue Aug 16, 2011 3:36 am ]
Post subject:  Get amount in team's funds?

I'm trying to increase the funds of a team by a certain amount, I know I can set the funds with

Code:
ActivityMan:GetActivity():SetTeamFunds(AMOUNT,TEAM)


However I don't know how to get the team's funds to increase it slightly, is there a way to get the team's funds? I imagine it would look something like this...

Code:
ActivityMan:GetActivity():GetTeamFunds(TEAM)


...then maybe I could increment it like this?

Code:
ActivityMan:GetActivity():SetTeamFunds(ActivityMan:GetActivity():GetTeamFunds(TEAM) + AMOUNT,TEAM)


Any help appreciated

Author:  CaveCricket48 [ Thu Aug 18, 2011 11:34 pm ]
Post subject:  Re: Get amount in team's funds?

Code:
ActivityMan:GetActivity():GetTeamFunds(<team>)

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/