31.12.2017, 19:52
PHP код:
new mydialogue[400];
strcat(mydialog, "|___ BANK STATEMENT ___|");
format(string, sizeof(string), "\n\nPaycheck: $%d", checks);
strcat(mydialog,string);
format(string, sizeof(string), "\nIncome Tax: -$%d", incometax);
strcat(mydialog,string);
if(PlayerInfo[i][pPbiskey] >= 1)
{
format(string, sizeof(string), "\nBusiness Electricity Bill: -$%d", ebill2);
strcat(mydialog,string);
}
format(string, sizeof(string), "\nRent: -$%d", rent);
strcat(mydialog,string);
format(string, sizeof(string), "\nBalance: $%d", account);
strcat(mydialog,string);
if(PlayerInfo[i][pDonateRank] == 0)
{
tmpintrate = tmpintrate/5;
format(string, sizeof(string), "\ninterest rate: 0.%d percent",tmpintrate);
strcat(mydialog,string);
}
else if(PlayerInfo[i][pDonateRank] == 1)
{
tmpintrate = tmpintrate/5;
format(string, sizeof(string), "\nInterest rate: 0.%d percent [Bronze VIP]",tmpintrate);
strcat(mydialog,string);
}
else if(PlayerInfo[i][pDonateRank] == 2)
{
tmpintrate = tmpintrate/5;
format(string, sizeof(string), "\nInterest rate: 0.%d percent [Silver VIP]",tmpintrate);
strcat(mydialog,string);
}
else if(PlayerInfo[i][pDonateRank] == 3)
{
tmpintrate = tmpintrate/10;
format(string, sizeof(string), "\nInterest rate: %d percent [Gold VIP]",tmpintrate);
strcat(mydialog,string);
}
else if(PlayerInfo[i][pDonateRank] == 4)
{
tmpintrate = tmpintrate/10;
format(string, sizeof(string), "\nInterest rate: %d percent [Platinium VIP]",tmpintrate);
strcat(mydialog,string);
}
else if(PlayerInfo[i][pDonateRank] == 5)
{
tmpintrate = tmpintrate/10;
format(string, sizeof(string), "\nInterest rate: %d percent [VIP Moderator]",tmpintrate);
strcat(mydialog,string);
}
format(string, sizeof(string), "\nInterest gained $%d", interest);
strcat(mydialog,string);
strcat(mydialog,"\n\n|------------------------------------------|");
format(string, sizeof(string), "\n\nNew Balance: $%d", PlayerInfo[i][pAccount]);
strcat(mydialog,string);
ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_MSGBOX,"DIALOG TEXT",mydialog,"Okay","");
Код:
ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_MSGBOX,"DIALOG TEXT",mydialog,"Okay","");