[POMOC]Pay Day

Započeo mayk, Septembar 29, 2011, 22:31:33 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:bu
Detaljan opis problema:kako da napravim dialogot sto fali na ovo pay day
Dio skripte:
Citatpublic PayDay()
{
   new string[128];
   new account,interest;
   new rent = 0;
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i))
      {
          if(PlayerInfo[pLevel] > 0)
          {
             if(MoneyMessage==1)
            {
                SendClientMessage(i, COLOR_LIGHTRED, "{00CCFF}Opel Roleplay: Niste{FFFF00} platili dug, u zatvor.");
                GameTextForPlayer(i, "~r~Uhapseni!", 2000, 1);
                SetPlayerInterior(i, 6);
                  SetPlayerPos(i, 264.6288,77.5742,1001.0391);
                  PlayerInfo[pJailed] = 1;
                  ResetPlayerWeapons(i);
               WantedPoints = 0;
               PlayerInfo[pJailTime] = 240;
               format(string, sizeof(string), "Zatvoreni ste na %d sekundi.   Jamcevina: nedostupnae", PlayerInfo[pJailTime]);
               SendClientMessage(i, COLOR_LIGHTBLUE, string);
            }
            new playername2[MAX_PLAYER_NAME];
            GetPlayerName(i, playername2, sizeof(playername2));
            account = PlayerInfo[pAccount];
            new key = PlayerInfo[pPhousekey];
            if(FarmerVar == 0)
               {
                  FarmerPickup
  • = 0;
                   }
                if(key != 255)
                {
                   rent = HouseInfo[key][hRent];
                   if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
                   {
                      rent = 0;
                   }
                   else if(rent > JB_GetPlayerMoney(i))
                   {
                      PlayerInfo[pPhousekey] = 255;
                      SendClientMessage(i, COLOR_WHITE, "Izbaceni ste iz kuce.");
                      rent = 0;
                   }
                   HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
                }
                new tmpintrate;
                if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
                {
                    if(PlayerInfo[pDonateRank] > 0) { tmpintrate = intrate+4; }
                   else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]
                }
                else
                {
                    if(PlayerInfo[pDonateRank] > 0) { tmpintrate = 3; }
                   else { tmpintrate = 1; }
                }
                new nxtlevel = PlayerInfo[pLevel] + 1;
                new expamount = nxtlevel*levelexp;
                if (PlayerInfo[pExp] < expamount)
                   {
                      SendClientMessage(i,COLOR_BLUE,"PayDay-Placa--- Opel Roleplay");
                   }
                   else
                   {
                      format(string, sizeof(string), "~g~LEVEL UP~n~~w~Sada si level %d", nxtlevel);
                      PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
                      PlayerPlayMusic(i);
                      PlayerInfo[pLevel]++;
                      }
                if(PlayerInfo[pPayDay] >= 5)
                {
                    Tax += TaxValue;//Should work for every player online
                    PlayerInfo[pAccount] -= TaxValue;
                    if(PlayerInfo[pDonateRank] > 0)
                   {
                       new bonus = PlayerInfo[pPayCheck] / 100;
                       PlayerInfo[pPayCheck] += bonus;
                   }
                   new checks = PlayerInfo[pPayCheck] / 5;
                    new ebill = (PlayerInfo[pAccount]/10000)*(PlayerInfo[pLevel]);
                    ConsumingMoney = 1;
                    JB_GivePlayerMoney(i, checks);
                    if(PlayerInfo[pAccount] > 0)
                    {
                       PlayerInfo[pAccount] -= ebill;
                       SBizzInfo[4][sbTill] += ebill;
                   
                   }
                   else
                   {
                       ebill = 0;
                   }
                   interest = (PlayerInfo[pAccount]/1000)*(tmpintrate);
                   PlayerInfo[pExp]++;
                   PlayerPlayMusic(i);
                   PlayerInfo[pAccount] = account+interest;
                   new coordsstring[768],coordsstringB[128],coordsstringC[128],coordsstringD[128],coordsstringE[128],coordsstringF[128],coordsstringG[128];
       format(coordsstringB, sizeof(coordsstringB), "| Placa: %d ",checks);
       format(coordsstringC, sizeof(coordsstringC), "| Porez: %d ",TaxValue);
       format(coordsstringD, sizeof(coordsstringD), "| Rent: %d ",rent);
       format(coordsstringE, sizeof(coordsstringE), "| Stari iznos: %d ",account);
       format(coordsstringF, sizeof(coordsstringF), "| Novi iznos: %d",PlayerInfo[pAccount] );
       format(coordsstringG, sizeof(coordsstringG), "| Kamata: %d ",interest );
       format(coordsstring, sizeof(coordsstring), "%s\n%s\n%s\n%s\n%s\n%s",coordsstringB,coordsstringC,coordsstringD,coordsstringE,coordsstringF,coordsstringG);
       ShowPlayerDialog(i,844,DIALOG_STYLE_MSGBOX,"|----------| PayDay|----------|Placa|----------|",coordsstring,"OK","Odustani");
                   rent = 0;
                   PlayerInfo[pPayDay] = 0;
                   PlayerInfo[pPayCheck] = 0;
                       if (PlayerInfo[pKredit] == 0)
                        {
                        SendClientMessage(i, COLOR_LIGHTRED, "Posjetite nas na forumu Uskoro");

                       }
               else if (PlayerInfo[pKredit]> 0)
                   {
                   PlayerInfo[pKredit] = PlayerInfo[pKredit]-500;
                   JB_GivePlayerMoney(i,500);
                   SendClientMessage(i, COLOR_BLUE, "* Rata kredita -500$.");
                     }
                   PlayerInfo[pConnectTime] += 1;
                   if(PlayerInfo[pDonateRank] > 0)
                   {
                       PlayerInfo[pPayDayHad] += 1;
                       if(PlayerInfo[pPayDayHad] >= 5)
                       {
                           PlayerInfo[pExp]++;
                           PlayerInfo[pPayDayHad] = 0;
                       }
                   }
                }
                else
                {
                    SendClientMessage(i, COLOR_LIGHTRED, "* {00CCFF}Opel Roleplay: Niste{FFFF00} igrali dovoljno dugo da bi dobili payday.");
                }
             }
          }
       }
       Checkprop();
       return 1;
    }
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Mozes malo pojasniti problem ??

Citatcoordsstring[768],coordsstringB[128],coordsstringC[128],coordsstringD[128],coordsstringE[128],coordsstringF[128],coordsstringG[128];
   format(coordsstringB, sizeof(coordsstringB), "| Placa: %d ",checks);
   format(coordsstringC, sizeof(coordsstringC), "| Porez: %d ",TaxValue);
   format(coordsstringD, sizeof(coordsstringD), "| Rent: %d ",rent);
   format(coordsstringE, sizeof(coordsstringE), "| Stari iznos: %d ",account);
   format(coordsstringF, sizeof(coordsstringF), "| Novi iznos: %d",PlayerInfo[pAccount] );
   format(coordsstringG, sizeof(coordsstringG), "| Kamata: %d ",interest );
   format(coordsstring, sizeof(coordsstring), "%s\n%s\n%s\n%s\n%s\n%s",coordsstringB,coordsstringC,coordsstringD,coordsstringE,coordsstringF,coordsstringG);
   ShowPlayerDialog(i,844,DIALOG_STYLE_MSGBOX,"|----------| PayDay|----------|Placa|----------|",coordsstring,"OK","Odustani");
ovaa e dialog taka ? epa mislam deka treba if dialogot == 844 taka nesto za da valjda pay dayo