21.12.2015, 13:09
Instead of making those many strings, you can do it in one string..
PS: sorry vince.. Just saw your post.. Tut none wanted to help him :*
PHP код:
public PayDay()
{
new payday[830];
foreach(Player, i)
{
if(IsPlayerConnected(i) && gPlayerLogged[i] == 1)
{
format(payday, sizeof(payday)," {FFFFFF}|___{00FFFF}BANKARSKI IZVESTAJ{FFFFFF}___|");
format(payday, sizeof(payday),"%s\n{00FFFF}Plata: {FFFFFF}$%d", payday, checks);
format(payday, sizeof(payday),"%s\n{00FFFF}Steceni interes: {FFFFFF}$%d", payday,interes);
format(payday, sizeof(payday),"%s\n{00FFFF}Kamatna stopa: {FFFFFF}0.%d posto", payday,kamatnastopa);
format(payday, sizeof(payday),"%s\n\n {FFFFFF}|---------------- {00FFFF}Racuni {FFFFFF}----------------|",payday);
format(payday, sizeof(payday),"%s\n{00FFFF}Racun za struju: {FFFFFF}$%d", payday,struja);
format(payday, sizeof(payday),"%s\n{00FFFF}Racun za vodu: {FFFFFF}$%d", payday,voda);
format(payday, sizeof(payday),"%s\n{00FFFF}Racun za komunalije: {FFFFFF}$%d", payday,komunalije);
format(payday, sizeof(payday),"%s\n\n {FFFFFF}|---------------- {00FFFF}Porezi {FFFFFF}----------------|",payday);
format(payday, sizeof(payday),"%s\n{00FFFF}Rent: {FFFFFF}%d",payday,rent);
format(payday, sizeof(payday),"%s\n{00FFFF}Porez na bogatstvo: {FFFFFF}$%d",payday,porezbogastvo);
format(payday, sizeof(payday),"%s\n\n {FFFFFF}|-----------------------------------------------|",payday);
format(payday, sizeof(payday),"%s\n{00FFFF}Staro Stanje: {FFFFFF}$%d{FFFFFF}",payday, PlayerInfo[i][pAccount] - checks - interes + (porezbogastvo + struja + voda + komunalije));
format(payday, sizeof(payday),"%s\n{00FFFF}Novo Stanje: {FFFFFF}$%d",payday,PlayerInfo[i][pAccount]);
format(payday, sizeof(payday),"%s\n\n {FFFFFF}|-----------------------------------------------|",payday);
ShowPlayerDialog(i, PLATA, DIALOG_STYLE_MSGBOX, "Bankarski izvestaj gradjana", payday , "U redu", "");
}
}
}