Jump to content
  • 0

Nu mai porneste server-ul


Jimmi

Question

Problema intalnita (descriere):Am modificat la enum numarul biz-urilor am urcat gm pe host si nu a mai pornit.
Ero(area / rile) / warning-(ul / urile):

[19:39:20] [debug] Run time error 4: "Array index out of bounds"
[19:39:20] [debug]  Accessing element at index 18 past array upper bound 17
[19:39:20] [debug] AMX backtrace:
[19:39:20] [debug] #0 001f74bc in public SyncTime () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn:26674
[19:39:20] [debug] #1 001f48e8 in public SyncUp () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn:26570
[19:39:20] [debug] #2 00136f5c in public zcmd_OnGameModeInit () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn:20869
[19:39:20] [debug] #3 native CallLocalFunction () from samp03svr
[19:39:20] [debug] #4 000243c8 in public SSCANF_OnGameModeInit () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\pawno\include\zcmd.inc:68
[19:39:20] [debug] #5 0001da2c in public Hook_OnGameModeInit () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\pawno\include\sscanf2.inc:174
[19:39:20] [debug] #6 native CallLocalFunction () from samp03svr
[19:39:20] [debug] #7 0001031c in public Itter_OnGameModeInit () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\pawno\include\beaZone.inc:40
[19:39:20] [debug] #8 native CallLocalFunction () from samp03svr
[19:39:20] [debug] #9 0000257c in public ScriptInit_OnGameModeInit () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\pawno\include\foreach.inc:774
[19:39:20] [debug] #10 native CallLocalFunction () from samp03svr
[19:39:20] [debug] #11 00000f14 in public OnGameModeInit () at C:\Users\Jimmi\Desktop\93.119.25.182-7777\pawno\include
\YSI\internal\..\y_scriptinit.inc:164
Liniile de cod / sursa / script-ul(obligatoriu):
public SyncTime()
{
   new string[64];
   new tmphour;
   new tmpminute;
   new tmpsecond;
   gettime(tmphour, tmpminute, tmpsecond);
   FixHour(tmphour);
   tmphour = shifthour;
   if ((tmphour > ghour) || (tmphour == 0 && ghour == 23) || (tmphour > bankhour) || (tmphour == 0 && bankhour == 23))
   {
      format(string, sizeof(string), "{a9c4e4}Ora este acum {0066FF}%d fix{a9c4e4}.",tmphour+1);
      BroadCast(COLOR_YELLOW,string);
      ghour = tmphour;
      bankhour = tmphour;
      PayDay();
      if(GangInfo[1][gHours] >= 1) GangInfo[1][gHours] --;
      if(GangInfo[2][gHours] >= 1) GangInfo[2][gHours] --;
      if(GangInfo[3][gHours] >= 1) GangInfo[3][gHours] --;
      if(GangInfo[4][gHours] >= 1) GangInfo[4][gHours] --;
      if(GangInfo[5][gHours] >= 1) GangInfo[5][gHours] --;
      if(GangInfo[6][gHours] >= 1) GangInfo[6][gHours] --;
      if(GangInfo[7][gHours] >= 1) GangInfo[7][gHours] --;
      if(GangInfo[8][gHours] >= 1) GangInfo[8][gHours] --;
      if(GangInfo[9][gHours] >= 1) GangInfo[9][gHours] --;
      if(GangInfo[10][gHours] >= 1) GangInfo[10][gHours] --;
      if(GangInfo[11][gHours] >= 1) GangInfo[11][gHours] --;
      if(GangInfo[12][gHours] >= 1) GangInfo[12][gHours] --;
      if(GangInfo[13][gHours] >= 1) GangInfo[13][gHours] --;
      if(GangInfo[14][gHours] >= 1) GangInfo[14][gHours] --;
      if(GangInfo[15][gHours] >= 1) GangInfo[15][gHours] --;
      if(GangInfo[16][gHours] >= 1) GangInfo[16][gHours] --;
      if(GangInfo[17][gHours] >= 1) GangInfo[17][gHours] --;
      if(GangInfo[18][gHours] >= 1) GangInfo[18][gHours] --;
      if(GangInfo[19][gHours] >= 1) GangInfo[19][gHours] --;
      if(GangInfo[20][gHours] >= 1) GangInfo[20][gHours] --;
      if(GangInfo[21][gHours] >= 1) GangInfo[21][gHours] --;
      if(GangInfo[22][gHours] >= 1) GangInfo[22][gHours] --;
      if(GangInfo[23][gHours] >= 1) GangInfo[23][gHours] --;
      if(GangInfo[24][gHours] >= 1) GangInfo[24][gHours] --;
      if(GangInfo[25][gHours] >= 1) GangInfo[25][gHours] --;
      if(GangInfo[26][gHours] >= 1) GangInfo[26][gHours] --;
      if(GangInfo[27][gHours] >= 1) GangInfo[27][gHours] --;
      if(GangInfo[28][gHours] >= 1) GangInfo[28][gHours] --;
      if(GangInfo[29][gHours] >= 1) GangInfo[29][gHours] --;
      if(GangInfo[30][gHours] >= 1) GangInfo[30][gHours] --;
      if(GangInfo[31][gHours] >= 1) GangInfo[31][gHours] --;
      if(GangInfo[32][gHours] >= 1) GangInfo[32][gHours] --;
      if(GangInfo[33][gHours] >= 1) GangInfo[33][gHours] --;
      if(GangInfo[34][gHours] >= 1) GangInfo[34][gHours] --;
      if(GangInfo[35][gHours] >= 1) GangInfo[35][gHours] --;
      if(GangInfo[36][gHours] >= 1) GangInfo[36][gHours] --;
      if(GangInfo[37][gHours] >= 1) GangInfo[37][gHours] --;
      if(GangInfo[38][gHours] >= 1) GangInfo[38][gHours] --;
      if(GangInfo[39][gHours] >= 1) GangInfo[39][gHours] --;
      if(GangInfo[40][gHours] >= 1) GangInfo[40][gHours] --;
      if(GangInfo[41][gHours] >= 1) GangInfo[41][gHours] --;
      if(GangInfo[42][gHours] >= 1) GangInfo[42][gHours] --;
      if(GangInfo[43][gHours] >= 1) GangInfo[43][gHours] --;
      if(GangInfo[44][gHours] >= 1) GangInfo[44][gHours] --;
      if(GangInfo[45][gHours] >= 1) GangInfo[45][gHours] --;
      if(GangInfo[46][gHours] >= 1) GangInfo[46][gHours] --;
      if(GangInfo[47][gHours] >= 1) GangInfo[47][gHours] --;
      if(GangInfo[48][gHours] >= 1) GangInfo[48][gHours] --;
      if(jafls >= 1) jafls --;
      if(jaflv >= 1) jaflv --;
      SaveBank();
      for(new b=5; b<=30; b++)
      {
          if(BizzInfo[b][bOwned] == 1) BizzInfo[b][bTill] += 500;
      }
      for(new n=0; n<sizeof(GangInfo); n++)
      {
           if(GangInfo[n][gFaction] != 0) DynamicFactions[GangInfo[n][gFaction]][fBank] += 3000;
      }
      if (realtime)
      {
         SetWorldTime(tmphour);
      }
      RandomWeather();
   }
}
Imagini / Video (optional):Aici am incercat sa modific
enum bInfo
{
    bOwned,
   bOwner[64],
   bMessage[128],
   bExtortion[MAX_PLAYER_NAME],
   Float:bEntranceX,
   Float:bEntranceY,
   Float:bEntranceZ,
   Float:bExitX,
   Float:bExitY,
   Float:bExitZ,
   bLevelNeeded,
   bBuyPrice,
   bEntranceCost,
   bTill,
   bLocked,
   bInterior,
   bProducts,
   bMaxProducts,
   bPriceProd,
};
new BizzInfo[18][bInfo];

new Text3D:BizzLabel[sizeof(BizzInfo)];

enum sbInfo
{
   sbOwned,
   sbOwner[64],
   sbMessage[128],
   sbExtortion[MAX_PLAYER_NAME],
   Float:sbEntranceX,
   Float:sbEntranceY,
   Float:sbEntranceZ,
   sbLevelNeeded,
   sbBuyPrice,
   sbEntranceCost,
   sbTill,
   sbLocked,
   sbInterior,
   sbProducts,
   sbMaxProducts,
   sbPriceProd,
};
new SBizzInfo[11][sbInfo];

new Text3D:SBizzLabel[sizeof(SBizzInfo)];

Inainte am avut 100 sbiz-uri ca aveau bug.Acuma am 11 ca am trecut pe mysql si 18 biz-uri din 90 si ceva
Ati incercat sa rezolvati singur?:
da

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

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.