02.10.2016, 20:51
Hi i have a problem, i use Y_ini login/register system, this is the code:
Код:
Payday() { for(new i = 0; i < MAX_PLAYERS; i++) { .................................................. new Float:cateoreprimeste, Float:secundejucate = PlayerInfo[i][pSecundeJucate]; cateoreprimeste = secundejucate / 3600; new Float:cateoreavea = PlayerInfo[i][pOreJucate]; cateoreavea += cateoreprimeste; new szStr[ 32 ]; format( szStr, sizeof szStr, "%.2f", cateoreavea); PlayerInfo[i][pOreJucate] = cateoreavea; -------------------------------- here's the error if(PlayerInfo[i][pRentHouseID] != 0) { PlayerInfo[i][pBankMoney] -= HousesInfo[hid][hRentPrice]; HousesInfo[hid][hMoney] += HousesInfo[hid][hRentPrice]; totalearnings = totalearnings-HousesInfo[hid][hRentPrice]; } totalearnings = totalearnings+interest; SendClientMessage(i,-1,"---------------------------------PAYDAY---------------------------------"); format(stringy21, sizeof(stringy21), "Salariu: %s$ | Bani in banca: %s$ | Dobanda: %s$ | Taxa: %s$ (10 procente) | Ore Jucate: %.2f", AddCommasToInt(paycheck), AddCommasToInt(PlayerInfo[i][pBankMoney]), AddCommasToInt(interest), AddCommasToInt(taxa),szStr); .................................................. }