SendClientMessage(i, COLOR_WHITE, "|___ BANK STATEMENT ___|"); format(string, sizeof(string), " Paycheck: $%d", checks); SendClientMessage(i, COLOR_GRAD1, string); format(string, sizeof(string), " Income Tax: -$%d", incometax); SendClientMessage(i, COLOR_GRAD1, string); if(PlayerInfo[i][pPbiskey] >= 1) { format(string, sizeof(string), " Business Electricity Bill: -$%d", ebill2); SendClientMessage(i, COLOR_GRAD1, string); } format(string, sizeof(string), " Rent: -$%d", rent); SendClientMessage(i, COLOR_GRAD1, string); format(string, sizeof(string), " Balance: $%d", account); SendClientMessage(i, COLOR_GRAD1, string); if(PlayerInfo[i][pDonateRank] == 0) { tmpintrate = tmpintrate/5; format(string, sizeof(string), " Interest rate: 0.%d percent",tmpintrate); SendClientMessage(i, COLOR_GRAD2, string); } else if(PlayerInfo[i][pDonateRank] == 1) { tmpintrate = tmpintrate/5; format(string, sizeof(string), " Interest rate: 0.%d percent [Bronze VIP]",tmpintrate); SendClientMessage(i, COLOR_GRAD2, string); } else if(PlayerInfo[i][pDonateRank] == 2) { tmpintrate = tmpintrate/5; format(string, sizeof(string), " Interest rate: 0.%d percent [Silver VIP]",tmpintrate); SendClientMessage(i, COLOR_GRAD2, string); } else if(PlayerInfo[i][pDonateRank] == 3) { tmpintrate = tmpintrate/10; format(string, sizeof(string), " Interest rate: %d percent [Gold VIP]",tmpintrate); SendClientMessage(i, COLOR_GRAD2, string); } else if(PlayerInfo[i][pDonateRank] == 4) { tmpintrate = tmpintrate/10; format(string, sizeof(string), " Interest rate: %d percent [Platinium VIP]",tmpintrate); SendClientMessage(i, COLOR_GRAD2, string); } else if(PlayerInfo[i][pDonateRank] == 5) { tmpintrate = tmpintrate/10; format(string, sizeof(string), " Interest rate: %d percent [VIP Moderator]",tmpintrate); SendClientMessage(i, COLOR_GRAD2, string); } format(string, sizeof(string), " Interest gained $%d", interest); SendClientMessage(i, COLOR_GRAD3, string); SendClientMessage(i, COLOR_GRAD4, "|------------------------------------------|"); format(string, sizeof(string), " New Balance: $%d", PlayerInfo[i][pAccount]); SendClientMessage(i, COLOR_GRAD5, string);
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","");
What would go into the "Dialog text" ? Or is that like, a title?
because, essentially what I want to go into the dialog, is everything you just set. :P Sorry btw. Still new to scripting. Trying to create a script on my own. It's hard. |
new statsstring[2500];
format(statsstring, sizeof(statsstring), "STATS ",params);
format(statsstring, sizeof(statsstring), " %s OTHER STATS", statsstring, other params);
format(statsstring, sizeof(statsstring), " %s OTHER STATS", statsstring, other params);
Create a big variable
pawn Код:
pawn Код:
|
Lmao, the most useless/meaningless post, 1- why use formats 2- why such a big array
Edit: the fact that you suggested making such a big array irrelevantly shows that you know 0 shit about what you just said as marking that array just takes up more memory, his post dialogue only takes up less than 400 characters, get out please. |