payday help
#1

Hello,i tried to create a payday system,if the racket is owned by faction then the rCash will be added to fCash,but i dont understand,if it will be added,it will add every racket cash,heres the payday

Код:
forward PayDay();
public PayDay()
{
for(new r = 0; r <= MAX_RACKETS; r++)
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
new string[128];
new OwnerID = RacketInfo[r][rOwner];
OrgInfo[OwnerID][fCash] += RacketInfo[r][rCash];
if(PlayerInfo[i][Member] == OwnerID)
{
SendClientMessage(i, COLOR_GRAD1, "Faction earnings");
format(string, sizeof(string), "[INFO]: Old Balance: $%d | New Balance: $%d", OrgInfo[OwnerID][fCash] - RacketInfo[r][rCash], OrgInfo[OwnerID][fCash]);
SendClientMessage(i, COLOR_GRAD1, string);
}
}
}
return 1;
}
Reply


Messages In This Thread
payday help - by WardenCS - 18.03.2012, 20:38
Re: payday help - by Yvax - 18.03.2012, 21:37

Forum Jump:


Users browsing this thread: 2 Guest(s)