Question small and easy!
#5

Try

pawn Код:
if(PlayerInfo[i][pPayDay] >= 5)
                        {
                            Tax += TaxValue;//Should work for every player online
                            PlayerInfo[i][pAccount] -= TaxValue;
                            new checks = PlayerInfo[i][pPayCheck] / 7;
                            if(PlayerInfo[i][pDonateRank] > 0)
                            {
                                new bonus = PlayerInfo[i][pPayCheck] / 10; // what does this do??
                                checks += bonus;
                            }
                            new ebill = (PlayerInfo[i][pAccount]/10000)*(PlayerInfo[i][pLevel]);
                            ConsumingMoney[i] = 1;
                               PlayerInfo[i][pAccount]=checks+PlayerInfo[i][pAccount];
                            if(PlayerInfo[i][pAccount] > 0)
                            {
                                PlayerInfo[i][pAccount] -= ebill;
                                SBizzInfo[4][sbTill] += ebill;
                            }
                            else
                            {
                                ebill = 0;
                            }
                            interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
                            PlayerInfo[i][pExp]++;
                            PlayerPlayMusic(i);
                            PlayerInfo[i][pAccount] = account+interest;
                            SendClientMessage(i, COLOR_YELLOW, "|==========| Salar Oral |==========");
                            format(string, sizeof(string), "  Salariu: %dLei", checks);
                            SendClientMessage(i, COLOR_WHITE, string);
                            if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
                            {
                                format(string, sizeof(string), "  Curentul: -%dLei", ebill);
                                SendClientMessage(i, COLOR_WHITE, string);
                            }
                            format(string, sizeof(string), "  Balanta: %dLei", account - checks);
                            SendClientMessage(i, COLOR_WHITE, string);
                            format(string, sizeof(string), "  Dobanda: 0.%d la suta",tmpintrate);
                            SendClientMessage(i,  COLOR_WHITE, string);
                            format(string, sizeof(string), "  Dobanzile %dLei", interest);
                            SendClientMessage(i,  COLOR_WHITE, string);
                            format(string, sizeof(string), "  Balanta Noua: %dLei", PlayerInfo[i][pAccount]);
                            SendClientMessage(i,  COLOR_WHITE, string);
                            format(string, sizeof(string), "  Chirie: -%dLei", rent);
                            SendClientMessage(i,  COLOR_WHITE, string);
                            format(string, sizeof(string), "  Impozitul: -%dLei", TaxValue);
                            SendClientMessage(i,  COLOR_WHITE, string);
                            SendClientMessage(i, COLOR_YELLOW, "|--------------------------------------|");
                            rent = 0;
                            PlayerInfo[i][pPayDay] = 0;
                            PlayerInfo[i][pPayCheck] = 0;
                            PlayerInfo[i][pConnectTime] += 1;
                            if(PlayerInfo[i][pDonateRank] > 0)
                            {
                                PlayerInfo[i][pPayDayHad] += 1;
                                if(PlayerInfo[i][pPayDayHad] >= 5)
                                {
                                    PlayerInfo[i][pExp]++;
                                    PlayerInfo[i][pPayDayHad] = 0;
                                }
                                //}
                            }
                        }
                        else
                        {
                            SendClientMessage(i, COLOR_RED, "* You haven't played long enough to obtain a PayDay.");
                        }
                    }
                    }
                    }
                    SaveAccounts();
                    Checkprop();
                    return 1;
                    }
Reply


Messages In This Thread
Question small and easy! - by Akcent_Voltaj - 07.09.2012, 23:32
Re: Question small and easy! - by vIBIENNYx - 08.09.2012, 02:27
Re: Question small and easy! - by Akcent_Voltaj - 09.09.2012, 11:46
Re: Question small and easy! - by Misiur - 09.09.2012, 12:53
Re: Question small and easy! - by vIBIENNYx - 09.09.2012, 12:53

Forum Jump:


Users browsing this thread: 1 Guest(s)