Jump to content
  • 0

array must be indexed (variable "name")


siret99

Question

Problema intalnita (descriere):erori de acest tip :M-a ajutat cine sa fac un dialog pentru payday si nu reusesc sa rezolv cu erorile de acest tip : array must be indexed (variable "name")
Ero(area / rile) / warning-(ul / urile):C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19827) : error 033: array must be indexed (variable "PlayerInfo")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19830) : warning 217: loose indentation
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19831) : warning 217: loose indentation
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19831) : error 033: array must be indexed (variable "MoneyMessage")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19834) : warning 217: loose indentation
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19835) : warning 217: loose indentation
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19837) : warning 217: loose indentation
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19837) : error 033: array must be indexed (variable "PlayerInfo")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19840) : warning 217: loose indentation
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19840) : error 033: array must be indexed (variable "WantedPoints")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19841) : error 033: array must be indexed (variable "PlayerInfo")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19849) : warning 217: loose indentation
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19851) : error 033: array must be indexed (variable "-unknown-")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19854) : error 047: array sizes do not match, or destination array is too small
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19855) : error 033: array must be indexed (variable "rent")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19857) : error 033: array must be indexed (variable "PlayerInfo")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19860) : error 033: array must be indexed (variable "rent")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19861) : warning 217: loose indentation
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19864) : error 033: array must be indexed (variable "PlayerInfo")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19867) : error 033: array must be indexed (variable "PlayerInfo")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19870) : warning 217: loose indentation
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19870) : error 023: array assignment must be simple assignment
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19870) : warning 215: expression has no effect
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19871) : error 033: array must be indexed (variable "PlayerInfo")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19873) : error 022: must be lvalue (non-constant)
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19873) : warning 215: expression has no effect
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19874) : error 033: array must be indexed (variable "PlayerInfo")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19877) : error 033: array must be indexed (variable "PlayerInfo")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19878) : error 023: array assignment must be simple assignment
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19878) : warning 215: expression has no effect
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19884) : error 047: array sizes do not match, or destination array is too small
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19886) : warning 217: loose indentation
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19886) : error 023: array assignment must be simple assignment
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19886) : warning 215: expression has no effect
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19887) : warning 217: loose indentation
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19887) : error 033: array must be indexed (variable "-unknown-")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19888) : warning 217: loose indentation
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19888) : error 033: array must be indexed (variable "PlayerInfo")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19890) : warning 217: loose indentation
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19890) : error 033: array must be indexed (variable "PlayerInfo")
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19891) : error 023: array assignment must be simple assignment
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19891) : warning 215: expression has no effect
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19894) : error 023: array assignment must be simple assignment
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19894) : warning 215: expression has no effect
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19895) : warning 217: loose indentation
C:UsersSBDesktopcel mai bungamemodesgolden.pwn(19898) : error 023: array assignment must be simple assignment

Compilation aborted.Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Liniile de cod / sursa / script-ul:Functie PayDay()
{
new string[128],str[256];
new interest,account[MAX_PLAYERS];
new rand2 = 17 + random(3);
new hour,minn,sec,expamount;
new rent[MAX_PLAYERS];
gettime(hour,minn,sec);
foreach(Player,i)
 {
    if(IsPlayerConnected(i))
    {
        if(PlayerInfo[pLevel] >= 0)
        {
             new wakaname[25];
              GetPlayerName(i,wakaname,sizeof(wakaname));
           if(MoneyMessage==1)
          {
              SendClientMessage(i, COLOR_LIGHTRED, "You failed to pay your debt, Jail time.");
                  new rand;
             rand = random(sizeof(gRandomJailSpawns));
             SetPlayerPos(i,gRandomJailSpawns[rand][0],gRandomJailSpawns[rand][1],gRandomJailSpawns[rand][2]);
                PlayerInfo[pJailed] = 1;
                ResetPlayerWeaponsEx(i);
                ResetPlayerWeapons(i);
             WantedPoints = 0;
             PlayerInfo[pJailTime] = 240;
             format(string, sizeof(string), "You are jailed for %d seconds.   Bail: Unable", PlayerInfo[pJailTime]);
             SendClientMessage(i, COLOR_LIGHTBLUE, string);
             Update(i,pJailedx);
             Update(i,pJailTimex);
             TogglePlayerControllable(i, 0);
             SetTimerEx("UnFreezeStation", 1000, false, "i", i);
          }
          new playername2[MAX_PLAYER_NAME];
          GetPlayerName(i, playername2, sizeof(playername2));
          new key = PlayerInfo[pPhousekey];
          if(key != 999)
          {
             rent = HouseInfo[key][hRent];
             if(rent > GetPlayerCash(i) && strcmp(playername2, HouseInfo[key][hOwner], false) == 0)
             {
                PlayerInfo[pPhousekey] = 999;
                Update(i,pPhousekeyx);
             }
             HouseInfo[key][hTakings] += rent;
              format(str,sizeof(str),"UPDATE `houses` SET `Takings`='%d' WHERE `ID`='%d'",HouseInfo[key][hTakings],key);
              mysql_query(SQL,str);
          }
          if(PlayerInfo[pPayDay] >= 5)
          {
             new tmpintrate;
             if(PlayerInfo[pPremiumAccount] == 1)
             {
                tmpintrate = 2;
                 PlayerInfo[pPayDayHad] += 1;
                 if(PlayerInfo[pPayDayHad] >= 5)
                 {
                     PlayerInfo[pExp]++;
                     PlayerInfo[pPayDayHad] = 0;
                     SCM(i,COLOR_LIGHTBLUE,"You got 1 respect point bonus because you have premium account.");
                 }
                 new bonus = PlayerInfo[pPayCheck] / 2;
                 PlayerInfo[pPayCheck] += bonus;
             }
             else
             {
                tmpintrate = 1;
             }
             account = PlayerInfo[pAccount];
             Tax += TaxValue;
              PlayerInfo[pAccount] -= TaxValue;
             new checks = PlayerInfo[pPayCheck];
              new ebill = (PlayerInfo[pLevel]*SBizzInfo[14][sbEntranceCost]/100);
              GivePlayerCash(i, checks);
             interest = (PlayerInfo[pAccount]/1000)*(tmpintrate);
             PlayerInfo[pExp] += 1;
             if(rand2 == hour && happyday == 0)
             {
                 PlayerInfo[pExp] += 1;
                SCM(i,COLOR_LIGHTBLUE,"You got a respect point because is your happy day.");
                happyday = 1;
             }
             PlayerInfo[pAccount] += interest;
             SendClientMessage(i, COLOR_WHITE, "|_________PAYDAY_________|");
             format(string, sizeof(string), "  Allowance: $%s   Tax Money: -$%s", FormatNumber(checks), FormatNumber(TaxValue));
             SendClientMessage(i, COLOR_GRAD1, string);
             if(PlayerInfo[pAccount] >= ebill && key != 999 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
             {
                 format(string, sizeof(string), "  Electricity Bill: -$%s", FormatNumber(ebill));
                SendClientMessage(i, COLOR_GRAD1, string);
                 PlayerInfo[pAccount] -= ebill;
                 SBizzInfo[14][sbTill] += ebill;
                 format(str,sizeof(str),"UPDATE `sbizz` SET `Till`='%d' WHERE `ID`='14'",SBizzInfo[14][sbTill]);
                mysql_query(SQL,str);
             }
             else
             {
                 ebill = 0;
             }
             format(string, sizeof(string), "  Balance: $%s", FormatNumber(account));
             format(string, sizeof(string), "  Interest Rate: 0.%d percent",tmpintrate);
             format(string, sizeof(string), "  Interest Gained $%s", FormatNumber(interest));
             format(string, sizeof(string), "|--------------------------------------|");
             format(string, sizeof(string), "  New Balance: $%s", FormatNumber(PlayerInfo[pAccount]));
             format(string, sizeof(string), "  Rent: -$%s", FormatNumber(rent));
             ShowPlayerDialog( i, DIALOGPAYDAY, DIALOG_STYLE_MSGBOX, "PaYDaY", string, "Exit", "" );
             format(string, sizeof(string), "~y~~r~PayDay~n~~w~Paycheck");
             GameTextForPlayer(i, string, 5000, 1);
             PlayerInfo[pPayDay] = 0;
             PlayerInfo[pPayCheck] = 0;
             if(PlayerInfo[pCarLicT] > 0)
             {
                PlayerInfo[pCarLicT] -= 1;
             }
             if(PlayerInfo[pFlyLicT] > 0)
             {
                PlayerInfo[pFlyLicT] -= 1;
             }
             if(PlayerInfo[pBoatLicT] > 0)
             {
                PlayerInfo[pBoatLicT] -= 1;
             }
             if(PlayerInfo[pFishLicT] > 0)
             {
                PlayerInfo[pFishLicT] -= 1;
             }
              if(PlayerInfo[pGunLicT] > 0)
             {
                PlayerInfo[pGunLicT] -= 1;
             }
             if(PlayerInfo[pRob] < 20)
                 {
                      PlayerInfo[pRob]++;
                 }
              if(PlayerInfo[pFpunish] > 0)
              {
                PlayerInfo[pFpunish]--;
              }
             if(PlayerInfo[pSleeping] == 0)
             {
                     PlayerInfo[pConnectTime] += 1;
                 }
                 if(PlayerInfo[pMember] == 7 || PlayerInfo[pLeader] == 7 || IsACop(i))
             {
                     PlayerInfo[pLawyer] += 1;
                 }
                 if(PlayerInfo[pMember] == 8 || PlayerInfo[pLeader] == 8)
             {
                    PlayerInfo[pTow] += 10;
             }
             if(PlayerInfo[pLevel] == 1 || PlayerInfo[pLevel] == 2 || PlayerInfo[pLevel] == 3 || PlayerInfo[pLevel] == 4)
             {
                 expamount = PlayerInfo[pLevel]*2;
                if(PlayerInfo[pExp] >= expamount)
                {
                    SCM(i,COLOR_LIGHTBLUE,"** You can use buylevel because you have necessary respect points.");
                }
             }
             else if(PlayerInfo[pLevel] >= 5)
             {
                 expamount = PlayerInfo[pLevel]*3;
                if(PlayerInfo[pExp] >= expamount)
                {
                    SCM(i,COLOR_LIGHTBLUE,"** You can use buylevel because you have necessary respect points.");
                }
             }
          }
          else
          {
             SendClientMessage(i, COLOR_LIGHTRED, "* You haven't played long enough to obtain a PayDay.");
          }
       }
    }
 }
 return 1;
}
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:Da

 

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

La eroarea cu PlayerInfo adaugi in fata si va iesi ca de exemplu: PlayerInfo[pFlyLicT] 

La cea cu rent adaugi la fel si va iesi rent

La cea cu WantedPoints adaugi la fel -> WantedPoints

Si la cea cu MoneyMessage la fel -> MoneyMessage

Edited by Gireada

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

  • 0

Mai imi da o singura eroare si warninguri multe ..defat imi deadea mult mai multe erori da le-am mai rezolvat :3

Ma poti ajuta , te rog din suflet

 

aceasta este linia 19896 : account = PlayerInfo[pAccount];

 

 

 

D:cel mai bungamemodesgolden.pwn(19842) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19843) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19846) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19847) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19849) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19852) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19861) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19873) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19882) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19896) : error 047: array sizes do not match, or destination array is too small
D:cel mai bungamemodesgolden.pwn(19898) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19899) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19900) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19902) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19907) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19917) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19918) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19921) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19954) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19958) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19962) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19966) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19970) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19978) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19981) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(19989) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(20884) : warning 217: loose indentation
D:cel mai bungamemodesgolden.pwn(20886) : warning 217: loose indentation
Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase


1 Error.
 

 

Functie PayDay()
    {
     new string[128],str[256];
     new interest,account[MAX_PLAYERS];
     new rand2 = 17 + random(3);
     new hour,minn,sec,expamount;
     new rent[MAX_PLAYERS];
     gettime(hour,minn,sec);
     foreach(Player,i)
     {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[pLevel] >= 0)
            {
                 new wakaname[25];
                  GetPlayerName(i,wakaname,sizeof(wakaname));
               if(MoneyMessage==1)
              {
                  SendClientMessage(i, COLOR_LIGHTRED, "You failed to pay your debt, Jail time.");
                      new rand;
                 rand = random(sizeof(gRandomJailSpawns));
                 SetPlayerPos(i,gRandomJailSpawns[rand][0],gRandomJailSpawns[rand][1],gRandomJailSpawns[rand][2]);
                    PlayerInfo[pJailed] = 1;
                    ResetPlayerWeaponsEx(i);
                    ResetPlayerWeapons(i);
                 WantedPoints = 0;
                 PlayerInfo[pJailTime] = 240;
                 format(string, sizeof(string), "You are jailed for %d seconds.   Bail: Unable", PlayerInfo[pJailTime]);
                 SendClientMessage(i, COLOR_LIGHTBLUE, string);
                 Update(i,pJailedx);
                 Update(i,pJailTimex);
                 TogglePlayerControllable(i, 0);
                 SetTimerEx("UnFreezeStation", 1000, false, "i", i);
              }
              new playername2[MAX_PLAYER_NAME];
              GetPlayerName(i, playername2, sizeof(playername2));
              new key = PlayerInfo[pPhousekey];
              if(key != 999)
              {
                 rent = HouseInfo[key][hRent];
                 if(rent > GetPlayerCash(i) && strcmp(playername2, HouseInfo[key][hOwner], false) == 0)
                 {
                    PlayerInfo[pPhousekey] = 999;
                    Update(i,pPhousekeyx);
                 }
                 HouseInfo[key][hTakings] += rent;
                  format(str,sizeof(str),"UPDATE `houses` SET `Takings`='%d' WHERE `ID`='%d'",HouseInfo[key][hTakings],key);
                  mysql_query(SQL,str);
              }
              if(PlayerInfo[pPayDay] >= 5)
              {
                 new tmpintrate;
                 if(PlayerInfo[pPremiumAccount] == 1)
                 {
                    tmpintrate = 2;
                     PlayerInfo[pPayDayHad] += 1;
                     if(PlayerInfo[pPayDayHad] >= 5)
                     {
                         PlayerInfo[pExp]++;
                         PlayerInfo[pPayDayHad] = 0;
                         SCM(i,COLOR_LIGHTBLUE,"You got 1 respect point bonus because you have premium account.");
                     }
                     new bonus = PlayerInfo[pPayCheck] / 2;
                     PlayerInfo[pPayCheck] += bonus;
                 }
                 else
                 {
                    tmpintrate = 1;
                 }
                 account = PlayerInfo[pAccount];
                 Tax += TaxValue;
                  PlayerInfo[pAccount] -= TaxValue;
                 new checks = PlayerInfo[pPayCheck];
                  new ebill = (PlayerInfo[pLevel]*SBizzInfo[14][sbEntranceCost]/100);
                  GivePlayerCash(i, checks);
                 interest = (PlayerInfo[pAccount]/1000)*(tmpintrate);
                 PlayerInfo[pExp] += 1;
                 if(rand2 == hour && happyday == 0)
                 {
                     PlayerInfo[pExp] += 1;
                    SCM(i,COLOR_LIGHTBLUE,"You got a respect point because is your happy day.");
                    happyday = 1;
                 }
                 PlayerInfo[pAccount] += interest;
                 SendClientMessage(i, COLOR_WHITE, "|_________PAYDAY_________|");
                 format(string, sizeof(string), "  Allowance: $%s   Tax Money: -$%s", FormatNumber(checks), FormatNumber(TaxValue));
                 SendClientMessage(i, COLOR_GRAD1, string);
                 if(PlayerInfo[pAccount] >= ebill && key != 999 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
                 {
                     format(string, sizeof(string), "  Electricity Bill: -$%s", FormatNumber(ebill));
                    SendClientMessage(i, COLOR_GRAD1, string);
                     PlayerInfo[pAccount] -= ebill;
                     SBizzInfo[14][sbTill] += ebill;
                     format(str,sizeof(str),"UPDATE `sbizz` SET `Till`='%d' WHERE `ID`='14'",SBizzInfo[14][sbTill]);
                    mysql_query(SQL,str);
                 }
                 else
                 {
                     ebill = 0;
                 }
                 format(string, sizeof(string), "  Balance: $%s", FormatNumber(pAccount));
                 format(string, sizeof(string), "  Interest Rate: 0.%d percent",tmpintrate);
                 format(string, sizeof(string), "  Interest Gained $%s", FormatNumber(interest));
                 format(string, sizeof(string), "|--------------------------------------|");
                 format(string, sizeof(string), "  New Balance: $%s", FormatNumber(PlayerInfo[pAccount]));
                 format(string, sizeof(string), "  Rent: -$%s", FormatNumber(rent));
                 ShowPlayerDialog( i, DIALOGPAYDAY, DIALOG_STYLE_MSGBOX, "PaYDaY", string, "Exit", "" );
                 format(string, sizeof(string), "~y~~r~PayDay~n~~w~Paycheck");
                 GameTextForPlayer(i, string, 5000, 1);
                 PlayerInfo[pPayDay] = 0;
                 PlayerInfo[pPayCheck] = 0;
                 if(PlayerInfo[pCarLicT] > 0)
                 {
                    PlayerInfo[pCarLicT] -= 1;
                 }
                 if(PlayerInfo[pFlyLicT] > 0)
                 {
                    PlayerInfo[pFlyLicT] -= 1;
                 }
                 if(PlayerInfo[pBoatLicT] > 0)
                 {
                    PlayerInfo[pBoatLicT] -= 1;
                 }
                 if(PlayerInfo[pFishLicT] > 0)
                 {
                    PlayerInfo[pFishLicT] -= 1;
                 }
                  if(PlayerInfo[pGunLicT] > 0)
                 {
                    PlayerInfo[pGunLicT] -= 1;
                 }
                 if(PlayerInfo[pRob] < 20)
                     {
                          PlayerInfo[pRob]++;
                     }
                  if(PlayerInfo[pFpunish] > 0)
                  {
                    PlayerInfo[pFpunish]--;
                  }
                 if(PlayerInfo[pSleeping] == 0)
                 {
                         PlayerInfo[pConnectTime] += 1;
                     }
                     if(PlayerInfo[pMember] == 7 || PlayerInfo[pLeader] == 7 || IsACop(i))
                 {
                         PlayerInfo[pLawyer] += 1;
                     }
                     if(PlayerInfo[pMember] == 8 || PlayerInfo[pLeader] == 8)
                 {
                        PlayerInfo[pTow] += 10;
                 }
                 if(PlayerInfo[pLevel] == 1 || PlayerInfo[pLevel] == 2 || PlayerInfo[pLevel] == 3 || PlayerInfo[pLevel] == 4)
                 {
                     expamount = PlayerInfo[pLevel]*2;
                    if(PlayerInfo[pExp] >= expamount)
                    {
                        SCM(i,COLOR_LIGHTBLUE,"** You can use buylevel because you have necessary respect points.");
                    }
                 }
                 else if(PlayerInfo[pLevel] >= 5)
                 {
                     expamount = PlayerInfo[pLevel]*3;
                    if(PlayerInfo[pExp] >= expamount)
                    {
                        SCM(i,COLOR_LIGHTBLUE,"** You can use buylevel because you have necessary respect points.");
                    }
                 }
              }
              else
              {
                 SendClientMessage(i, COLOR_LIGHTRED, "* You haven't played long enough to obtain a PayDay.");
              }
           }
        }
     }
     return 1;
    }

Edited by siret99
Link to comment
Share on other sites

  • 0

Ai account[MAX_PLAYERS] așa că pune account[playerid] =... și acel account[MAX_PLAYERS] punel sus langă celelalte news

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

  • 0

Nu are de ce sa puna playerid, deoarece functia nu are nici un parametru. El foloseste o structura repetitva, iar ca variabila a luat 1.

 

Cat despre erorile acelea pune #pragma tabsize 0

 

iar la

 

account = PlayerInfo[pAccount]; pune account = PlayerInfo[pAccount];

Edited by Gireada

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.