Question for strings
#7

Thank you all! I have 2 more situations

What is better of these options:
1.1 Option:
Код:
public Plata()
{
new bank = 1;
foreach(Player, i)
    {
    if(gPlayerLogged[i] == 1)
      {
       if(PlayerInfo[i][pVip] > 1) bank = 5;
       GiveMoney(i, money*bank);
..
1.2 option:
Код:
public Plata()
{
foreach(Player, i)
    {
    if(gPlayerLogged[i] == 1)
      {
       new bank = 1;
       if(PlayerInfo[i][pVip] > 1) bank = 5;
       GiveMoney(i, money*bank);
..
And question: If i already define one big string, ex: string[500]; and i use it for dialog, can i use that for more functions in that public, ex:
Код:
new string[500];
format(string, sizeof(string), "Big message with 490 characters");
ShowPlayerDialog(i, PLATA, DIALOG_STYLE_MSGBOX, "Bankarski izvestaj gradjana", string, "U redu", "");
format(string, sizeof(string), "Small message with 30 characters");
SendClientMessage(i, Color, string);
Is there better to define one more string for this small message or it dont needed??
Reply


Messages In This Thread
Question for strings - by DusanInfinity - 21.12.2015, 10:03
Re: Question for strings - by RoboN1X - 21.12.2015, 10:08
Re: Question for strings - by DusanInfinity - 21.12.2015, 10:15
Re: Question for strings - by Vince - 21.12.2015, 10:21
Re: Question for strings - by jamesbond007 - 21.12.2015, 11:41
Re: Question for strings - by Mic_H - 21.12.2015, 13:09
Re: Question for strings - by DusanInfinity - 21.12.2015, 19:13
Re: Question for strings - by AmigaBlizzard - 21.12.2015, 20:31
Re: Question for strings - by SickAttack - 21.12.2015, 21:48
Re: Question for strings - by DusanInfinity - 22.12.2015, 19:23

Forum Jump:


Users browsing this thread: 2 Guest(s)