How to get each player cash and collet them ?
#1

How to get each player cash and collet them ?
Quote:

new GetEachPlayerCash= BankCash[i]/100;

etc

if playerA:GetEachPlayerCash[playerid] is -500 and playerB:GetEachPlayerCash[playerid] is -4000 and continue to

like

Player id 100

(playerA+playerB+playerC+playerD+and.............. )

then collet all values and put in new GetAllCollectedCash

and then Givecash(playerid,GetAllCollectedCash)

Reply
#2

pawn Код:
new totalPlayerCash;

for(new playerIndex; playerIndex < MAX_PLAYERS; playerIndex++)
{
    totalPlayerCash += GetPlayerMoney(playerIndex);
}

printf("The total amount of cash counted from all of the online players is $%d.", totalPlayerCash);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)