Jump to content
MakeWebGames

Recommended Posts

Posted

Clans now have clans stats for example to store some money, or honor or number of kills or whatever YOU decide. To demonstrate the usage, I created a simple clans_bank (if I remember right Kyle created one too, right? Sorry if it's a double).

Basically you create a stat inside the install.sql:

replace into clans_stats_types(name) values('Bank');

 

After that you can call:

<?php
SetClanStat($memberOf, "Bank",100);
$value=GetClanStat($memberOf, "Bank");
Posted

AWESOME!

I think the other was more of a bank right Kyle? And your could be clan_stats. Now we need a vault ... then the BIG bucks start coming in. Okay its snowing, my brain is melting :)

Greg

Posted
Clans now have clans stats for example to store some money, or honor or number of kills or whatever YOU decide. To demonstrate the usage, I created a simple clans_bank (if I remember right Kyle created one too, right? Sorry if it's a double).

Basically you create a stat inside the install.sql:

replace into clans_stats_types(name) values('Bank');

 

After that you can call:

<?php
SetClanStat($memberOf, "Bank",100);
$value=GetClanStat($memberOf, "Bank");

Thats alright. I need to update my clan bank anyways so when I do I will edit it to fit in with the new updates so just incase anyone still wants to use mine. Because my version allows the depositing of currency to the vault but only clan masters can make a withdraw

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...