Ucitanje

Započeo Lyzzi, April 27, 2020, 18:23:12 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning): [C:\Users\bojco\OneDrive\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(10362) : error 032: array index out of bounds (variable "TDEditor_TD")
C:\Users\bojco\OneDrive\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(10363) : error 032: array index out of bounds (variable "TDEditor_TD")
C:\Users\bojco\OneDrive\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(10364) : error 032: array index out of bounds (variable "TDEditor_TD")
C:\Users\bojco\OneDrive\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(10365) : error 032: array index out of bounds (variable "TDEditor_TD")
C:\Users\bojco\OneDrive\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(10366) : error 032: array index out of bounds (variable "TDEditor_TD")
C:\Users\bojco\OneDrive\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(10367) : error 032: array index out of bounds (variable "TDEditor_TD")
C:\Users\bojco\OneDrive\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(10368) : error 032: array index out of bounds (variable "TDEditor_TD")
C:\Users\bojco\OneDrive\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(10369) : error 032: array index out of bounds (variable "TDEditor_TD")
C:\Users\bojco\OneDrive\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(10370) : error 032: array index out of bounds (variable "TDEditor_TD")
C:\Users\bojco\OneDrive\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(10371) : error 032: array index out of bounds (variable "TDEditor_TD")
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase

/b]
Dio skripte: [ pawn ]Evo definicije
new Text:TDEditor_TD[37];
/////Evo i linije od koda kod OnPayerSpawn
IMA JOS KODA ali msm da je dovoljno ovo

[pawn]public OnPlayerSpawn(playerid)
{
/*    if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
        if(!strcmp(npcname, "Bus_Driver0", true)) //Checking if the NPC's name is MyFirstNPC
        {
            PutPlayerInVehicle(playerid, NpcVozilo0, 0); //Putting the NPC into the vehicle we created for it.
            return 1;
        }
        if(!strcmp(npcname, "Bus_Driver1", true))
        {
            PutPlayerInVehicle(playerid, NpcVozilo1, 0);
            return 1;
        }
        return 1;
    }*/
   
   
       for(new i = 0; i <= 37;i++)
   {
       TextDrawShowForPlayer(playerid,TDEditor_TD);

   }
   
   InitLockDoors(playerid);
   STDPlayer[playerid] = 0;
   gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
   if (gTeam[playerid] == 4) //medic / criminal reset team
   {
      gTeam[playerid] = 3;
   }
   if(gPlayerLogged[playerid] == 0 && IsPlayerNPC(playerid) != 1)
   {
       SendClientMessage(playerid, COLOR_LIGHTRED, "** Ovaj server zahtjeva prvo da se prijavite prije spawnanja (Kikovan) **");
        KickPlayer[playerid] = 1;
   }
   if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
   {
       MedicBill[playerid] = 0;
       new rand = random(sizeof(CIV));
      SendClientMessage(playerid, COLOR_LIGHTRED, "Niste prihvaceni Lider, sada ste civil !");
      PlayerInfo[playerid][pTeam] = 3;
      gTeam[playerid] = 3;
      SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
      PlayerInfo[playerid][pModel] = CIV[rand];
      SpawnPlayer(playerid);
   }
   if(gTeam[playerid] == 5)
   {
       if(PlayerInfo[playerid][pMember] < 1)
       {
           MedicBill[playerid] = 0;
           new rand = random(sizeof(CIV));
         SendClientMessage(playerid, COLOR_LIGHTRED, "Niste clan Organizacije, sada ste civil !");
         PlayerInfo[playerid][pTeam] = 3;
         gTeam[playerid] = 3;
            SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
         PlayerInfo[playerid][pModel] = CIV[rand];
         SpawnPlayer(playerid);
      }
   }
   if(gTeam[playerid] == 10)
   {
       if(PlayerInfo[playerid][pMember] != 8)
       {
           MedicBill[playerid] = 0;
           new rand = random(sizeof(CIV));
         SendClientMessage(playerid, COLOR_LIGHTRED, "Niste clan ove agencije, sada ste civil !");
         PlayerInfo[playerid][pTeam] = 3;
         gTeam[playerid] = 3;
            SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
         PlayerInfo[playerid][pModel] = CIV[rand];
         SpawnPlayer(playerid);
      }
   }
   if(gTeam[playerid] == 2 && PlayerInfo[playerid][pMember] > 3)
   {
       MedicBill[playerid] = 0;
      new rand = random(sizeof(CIV));
      SendClientMessage(playerid, COLOR_LIGHTRED, "Niste se prijavili za Policiju / FBI / SWAT, sada ste civil !");
      PlayerInfo[playerid][pTeam] = 3;
      gTeam[playerid] = 3;
      SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
      PlayerInfo[playerid][pModel] = CIV[rand];
      SpawnPlayer(playerid);
   }
   if(gTeam[playerid] == 3)
   {
       if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
       {
         SendClientMessage(playerid, COLOR_LIGHTRED, "Niste clan Org, premjesteni ste na odgovarajucu Klasu + Char !");
         MedicBill[playerid] = 0;
         new model = PlayerInfo[playerid][pChar];
         if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
         //else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
         //else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 15) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         //else if(PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         //else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         //else if(PlayerInfo[playerid][pLeader] == 15) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         //SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);
         SpawnPlayer(playerid);
      }[ /pawn ][/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem):

[pawn]for(new i = 0; i <= 38;i++)[/pawn]

Vidi koliko tdova imas, ako ti stoji broj 37 kao sto kazes, tacnije ako imas toliko tdova, onda stavljas za broj veci.

Ili ako idalje ne bude htelo, povecaj unutar array-a broj na jedan veci, i onda stavi unutar for-a takodje za jedan veci od tog sto si stavio


Cek da ne otvaram drugu opet mi unkown mode al sam updateao streamere

Izvinjavam se na DP evo log

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[13:18:49]
[13:18:49] Server Plugins
[13:18:49] --------------
[13:18:49]  Loading plugin: sscanf
[13:18:49]

[13:18:49]  ===============================

[13:18:49]       sscanf plugin loaded.     

[13:18:49]          Version:  2.8.1       

[13:18:49]    (c) 2012 Alex "Y_Less" Cole 

[13:18:49]  ===============================

[13:18:49]   Loaded.
[13:18:49]  Loading plugin: crashdetect
[13:18:49]   CrashDetect v4.15.1 is OK.
[13:18:49]   Loaded.
[13:18:49]  Loading plugin: streamer
[13:18:49]

*** Streamer Plugin v2.9.4 by Incognito loaded ***

[13:18:49]   Loaded.
[13:18:49]  Loaded 3 plugins.

[13:18:49]
[13:18:49] Filterscripts
[13:18:49] ---------------
[13:18:49]   Loading filterscript 'anim.amx'...
[13:18:49]   Loaded 1 filterscripts.

[13:18:50] [debug] Run time error 19: "File or function is not found"
[13:18:50] [debug]  MapAndreas_Init
[13:18:50] [debug]  MapAndreas_FindZ_For2DCoord
[13:18:50] [debug] Run time error 19: "File or function is not found"
[13:18:50] [debug]  MapAndreas_Init
[13:18:50] [debug]  MapAndreas_FindZ_For2DCoord
[13:18:50] Script[gamemodes/dimiskov.amx]: Run time error 19: "File or function is not found"
[13:18:50] Number of vehicle models: 0

U plugins dodaj MapAndreas i update ga, takodje recompile skriptu

@V01D  isto  dodao sam plugine.One Linux

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[00:38:48]
[00:38:48] Server Plugins
[00:38:48] --------------
[00:38:48]  Loading plugin: sscanf
[00:38:48]

[00:38:48]  ===============================

[00:38:48]       sscanf plugin loaded.     

[00:38:48]          Version:  2.8.1       

[00:38:48]    (c) 2012 Alex "Y_Less" Cole 

[00:38:48]  ===============================

[00:38:48]   Loaded.
[00:38:48]  Loading plugin: crashdetect
[00:38:48]   CrashDetect v4.15.1 is OK.
[00:38:48]   Loaded.
[00:38:48]  Loading plugin: streamer
[00:38:48]

*** Streamer Plugin v2.9.4 by Incognito loaded ***

[00:38:48]   Loaded.
[00:38:48]  Loaded 3 plugins.

[00:38:48]
[00:38:48] Filterscripts
[00:38:48] ---------------
[00:38:48]   Loading filterscript 'anim.amx'...
[00:38:48]   Loaded 1 filterscripts.

[00:38:49] [debug] Run time error 19: "File or function is not found"
[00:38:49] [debug]  MapAndreas_Init
[00:38:49] [debug]  MapAndreas_FindZ_For2DCoord
[00:38:49] [debug] Run time error 19: "File or function is not found"
[00:38:49] [debug]  MapAndreas_Init
[00:38:49] [debug]  MapAndreas_FindZ_For2DCoord
[00:38:49] Script[gamemodes/dimiskov.amx]: Run time error 19: "File or function is not found"
[00:38:49] Number of vehicle models: 0