Question small and easy!
#1

hi how can i make to get pyday smaller??

PHP код:
if(PlayerInfo[i][pPayDay] >= 5)
                        {
                            
Tax += TaxValue;//Should work for every player online
                            
PlayerInfo[i][pAccount] -= TaxValue;
                            new 
checks PlayerInfo[i][pPayCheck] / 5;
                            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(iCOLOR_YELLOW"|==========| Salar Oral |==========");
                            
format(stringsizeof(string), "  Salariu: %dLei"checks);
                            
SendClientMessage(iCOLOR_WHITEstring);
                            if(
PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
                            {
                                
format(stringsizeof(string), "  Curentul: -%dLei"ebill);
                                
SendClientMessage(iCOLOR_WHITEstring);
                            }
                            
format(stringsizeof(string), "  Balanta: %dLei"account checks);
                            
SendClientMessage(iCOLOR_WHITEstring);
                            
format(stringsizeof(string), "  Dobanda: 0.%d la suta",tmpintrate);
                            
SendClientMessage(i,  COLOR_WHITEstring);
                            
format(stringsizeof(string), "  Dobanzile %dLei"interest);
                            
SendClientMessage(i,  COLOR_WHITEstring);
                            
format(stringsizeof(string), "  Balanta Noua: %dLei"PlayerInfo[i][pAccount]);
                            
SendClientMessage(i,  COLOR_WHITEstring);
                            
format(stringsizeof(string), "  Chirie: -%dLei"rent);
                            
SendClientMessage(i,  COLOR_WHITEstring);
                            
format(stringsizeof(string), "  Impozitul: -%dLei"TaxValue);
                            
SendClientMessage(i,  COLOR_WHITEstring);
                            
SendClientMessage(iCOLOR_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(iCOLOR_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)