Problem(error/warning): Nakon dugo editovanja moda sada sam tek primjetio da mi na ucitavanju moda izbacuje debugove, takodje i kad igrac umre, tj. kad se spawnuje izbacuje odredjene debugove. Ostavit cu dole server_log, OnPlayerSpawn i OnGameModeInit, jer mi na njima izbacuje debug
!!I DA!!! NISAM PRIMJETIO GRESKE IG!!!NEMA GRESAKA!!!
Deo skripte:
OnGameModeInit
[pawn]public OnGameModeInit()
{
Command_AddAltNamed("fv", "vr");
Command_AddAltNamed("arrest", "uhapsi");
Command_AddAltNamed("help", "komande");
Command_AddAltNamed("ad", "oglas");
Ribica = 10;
new krkk[256];
format(krkk,sizeof(krkk),""SERVER"Broj riba {FFFFFF}%d",Ribica);
RibeLabel = C3D(krkk, -1, 2948.9946,-2055.3345,3.5249, 10);
Actor4 = CreateActor(63, 1213.979003, -4.256698, 1001.328125, 135.671844);
SetActorVirtualWorld(Actor4, 36);
//ribar
CreateDynamicPickup(19133, 1, 2949.9180,-2054.3564,3.5249);
CreateDynamicPickup(19133, 1, 821.2837,-2084.6794,12.9087);
CreateDynamicPickup(19133, 1, 2992.9370,-2062.5652,3.4979);
CreateDynamicPickup(19133, 1, 2992.9375,-2040.8386,3.4979);
CreateDynamicPickup(19133, 1, 2976.7832,-2062.6196,3.4979);
CreateDynamicPickup(19133, 1, 2976.9753,-2039.9556,3.4979);
//mesara
CreateDynamicPickup(19133, 1, -564.9921,2553.5776,-51.0230); // /PRODAJMESO
CreateDynamicPickup(19133, 1, 1102.0165,-1271.4386,13.5469); //ULAZ
//
ServerStartCount = GetTickCount();
ZlataraRobbedRecently = 0;
helppostavljen = 0;
pljackabanke = 0;
Pijo = 1;
MehPozivalac = -1;
BolnicarPozivalac = -1;
TaxiPozivalac = -1;
BankaVrataSrusena = 0;
ukupnopaketica = 0;
votation = 0;
voteyes = 0;
voteno = 0;
pljackabanke = 0;
Prognozasys = 10;
VremenskaUkljucena = true;
KiwiBot[0][kb_Weapon] = 1;
KiwiBot[0][kb_PingKicker] = 1;
DrogaKuca[SemenaCannabis] = 50;
DrogaKuca[SemenaKokaina] = 50;
duplirespect = 0;
//UpdateSefove();
print("[BU:RP] Skripta vrsi ocitavanje....");
print("[BU:RP] OnGameModeInit se pokrece.");
SADA DOLE IDU MAPE, LABELI, PICKUPOVI I ORG PODESAVANJA....
I NA KRAJU...
if (CountDynamicObjects() > 0)
printf( "%d - ukupno CreateDynamicObjekata.", CountDynamicObjects());
// ------------------ PODESAVANJA I VARIJABLE ------------------------------
//_______________ SNEG
//AddSnowObjects();
//_______________
AntiDeAMX();
ShowNameTags(1);
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();
ShowPlayerMarkers(false);
SetNameTagDrawDistance(25);
AllowInteriorWeapons(1);
SetGameModeText("[V:RP] v1.0");
SendRconCommand("language Balkanian");
SendRconCommand("weburl www.v-rp.xyz");
SendRconCommand("mapname Balkan");
SetTimer("RekordBre", 500, 1);
onlinepl = Konektovano();
gettime(ghour, gminute, gsecond);
FixHour(ghour);
ghour = shifthour;
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
SetWorldTime(tmphour);
if(!realtime)
{
new tmphourd;
new tmpminuted;
new tmpsecondd;
gettime(tmphourd, tmpminuted, tmpsecondd);
FixHour(tmphourd);
SetWorldTime(tmphourd);
}
RespawnVozila = 0;
toglas = 0;
APOtvorena = false;
GR1Otvorena = false;
GR2Otvorena = false;
SAJpotvorena = false;
SAJzotvorena = false;
VIPzotvorena = false;
PROMzotvorena = false;
DRILLkotvorena = false;
//SetTimer("RandomPorukeTD", 5000, true);
tutbrttimer = SetTimer("TutorialMessagesS", 300000, 1);
odbrojavanje = SetTimer("Odbrojavanja", 1000, true);
wlprovera = SetTimer("WLProvera", 300000, true);
proveravam = SetTimer("ProveraSvihIgraca", 10000, true);
spremikorisnike = SetTimer("SpremiKorisnike", 500000, true);
SetTimer("SpadanjeWanteda", 600000, true);
SetTimer("paketzaoruzije",900000,true);
SetTimer("OxygenBar", Sec(10), 1);
SetTimer("VremeTimer",5000,true);
SetTimer("DatumTimer",10000,true);
//AERON SECURITY v1//////////////////////////////////////////////////
SetTimer("AntiCheat", 1000, 1);
UcitajAC();
if(fexist("AC-BS/reci.txt"))
{
new File:myFile,
line[MAX_LEN],
index=0;
myFile=fopen("AC-BS/reci.txt",filemode:io_read);
while(fread(myFile,line,sizeof line) && (index != MAX_ENTRY))
{
if(strlen(line)>MAX_LEN) continue;
StripNewLine(line);
strmid(reci[index],line,0,strlen(line),sizeof line);
index++;
}
}
////////////////////////////////////////////////////////////////
if (realtime)
{
new tmphourr;
new tmpminutee;
new tmpsecondd;
gettime(tmphourr, tmpminutee, tmpsecondd);
FixHour(tmphourr);
tmphourr = shifthour;
SetWorldTime(tmphourr);
}
return 1;
}[/pawn]
OnPlayerSpawn
[pawn]public OnPlayerSpawn(playerid)
{
SetPlayerSkin(playerid, PI[playerid][pSkin]);
ACPosX[playerid] = X;
ACPosY[playerid] = Y;
ACPosZ[playerid] = Z;
SetPVarInt(playerid, "Izbegavanje", 0);
SetPVarInt(playerid, "AirBIzbegavanje", 0);
WeaponUpozorenja[playerid] = 0;
SetTimerEx("PlayerGameCrashed", 8000, 0, "i", playerid);
SetTimerEx("ACbre", 3000, 0, "i", playerid);
ResetPlayerWeaponStats(playerid);
SetPlayerScore(playerid, PI[playerid][pNivo]);
SetPlayerColor(playerid, BELA);
AmmoUpozorenja[playerid] = 0;
if(Neregistrovan[playerid] == true) return 1;
//AERON SECURITY V1///////////////////////////////////////////////////////
Spawnovan[playerid] = 1;
Skakuce[playerid] = 0;
Novac1[playerid] = GetPlayerMoney(playerid);
OpomenaNovca[playerid] = 0;
SetPVarInt(playerid, "SiguranTeleport", 1);
SetPVarInt(playerid, "SiguranInt", GetPlayerInterior(playerid));
SetPVarInt(playerid, "SiguranVW", GetPlayerVirtualWorld(playerid));
//////////////////////////////////////////////////////////////////////
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, PI[playerid][pSkillPistol]);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][pSkillSPistol]);
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][pSkillDEagle]);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PI[playerid][pSkillShotgun]);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, PI[playerid][pSkillSawnOff]);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, PI[playerid][pSkillSpas12]);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, PI[playerid][pSkillUzi]);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PI[playerid][pSkillMp5]);
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][pSkillAK47]);
SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][pSkillM4]);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, PI[playerid][pSkillSniper]);
if(PI[playerid][pSmeceTimer] > 1)
{
SmeceTraziTimer[playerid] = SetTimerEx("SmeceVrijemeMinus",1000,1,"i",playerid);
}
//hptimer = SetTimer("HPProvera", 20000, true);
if(Ucitano[playerid] == 0)
{
Ucitano[playerid] = 1;
}
if(TextDrawGangZone[playerid] != 1)
{
for(new j = 0; j < 23; j++) { TextDrawHideForPlayer(playerid, LoginTD[j]); }
PlayerTextDrawShow(playerid, BGTD[2][playerid]);
PlayerTextDrawShow(playerid, BGTD[1][playerid]);
for(new c = 0; c < 17; c++) { TextDrawShowForPlayer(playerid, IGTdovi[c]); }
TextDrawShowForPlayer(playerid, PlayerInfo_TD[0]);
TextDrawShowForPlayer(playerid, IGTdovi[7]);
TextDrawGangZone[playerid] = 1;
}
if(nelsondebug == 1) printf("[Aeron-DEBUG] OnPlayerSpawn 3");
if(nelsondebug == 1) printf("[Aeron-DEBUG] OnPlayerSpawn 4");
if(!gPlayerAnimLibsPreloaded[playerid])
{
PreloadAnimLib(playerid,"BOMBER");
PreloadAnimLib(playerid,"RAPPING");
PreloadAnimLib(playerid,"SHOP");
PreloadAnimLib(playerid,"BEACH");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"ON_LOOKERS");
PreloadAnimLib(playerid,"DEALER");
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"CARRY");
PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"SWORD");
PreloadAnimLib(playerid,"PED");
gPlayerAnimLibsPreloaded[playerid] = 1;
}
if(PI[playerid][pVIP] >= 3)
{
ghostac_SetPlayerArmour(playerid, 99.0);
}
ShowPlayerInfo(playerid);
//if(PI[playerid][TrazeniNivo] != 0) { SCM_BU(playerid, "Imali ste wanted level na izlasku/smrti, pa vam je postavljen opet!"); ghostac_SetPlayerWantedLevel(playerid,PI[playerid][TrazeniNivo]); }
//if(FirstSpawn[playerid] == 1) { PI[playerid][pProveraSpawna] = SPAWN_NORMAL; FirstSpawn[playerid] = 0; }
ResetPlayerWeaponsEx(playerid);
SetPlayerColor(playerid, TEAM_HIT_COLOR);
ResetujVar(playerid);
UsaoFirma[playerid] = -1;
HealthSynced[playerid] = 0;
SetPlayerScore(playerid, PI[playerid][pNivo]);
SetPlayerSkin(playerid, PI[playerid][pSkin]);
SetTimerEx("PostaviVar", 2000, false, "d", playerid);
if(PI[playerid][Admin] >= 1 || PI[playerid][Specer] >= 1)
{ TextDrawShowForPlayer(playerid, WarnTD); }
PostaviSpawn(playerid);
return 1;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[18:39:45] filterscripts = "" (string)
[18:39:45]
[18:39:45] Server Plugins
[18:39:45] --------------
[18:39:45] Loading plugin: crashdetect.dll
[18:39:45] CrashDetect v4.15 is OK.
[18:39:45] Loaded.
[18:39:45] Loading plugin: streamer.dll
[18:39:45]
*** Streamer Plugin v2.7.4 by Incognito loaded ***
[18:39:45] Loaded.
[18:39:45] Loading plugin: sscanf.dll
[18:39:45]
[18:39:45] ===============================
[18:39:45] sscanf plugin loaded.
[18:39:45] Version: 2.8.1
[18:39:45] (c) 2012 Alex "Y_Less" Cole
[18:39:45] ===============================
[18:39:45] Loaded.
[18:39:45] Loading plugin: MapAndreas.dll
[18:39:45] Loaded.
[18:39:45] Loaded 4 plugins.
[18:39:46]
[18:39:46] Filterscripts
[18:39:46] ---------------
[18:39:46] Loaded 0 filterscripts.
[18:39:48]
[18:39:48]
[18:39:48]
[18:39:48] =======================================
[18:39:48] | |
[18:39:48] | YSI version 3.09.0684 |
[18:39:48] | By Alex "Y_Less" Cole |
[18:39:48] | |
[18:39:48] =======================================
[18:39:48]
[18:39:48]
[18:39:48]
[18:39:53] [BU:RP] Skripta vrsi ocitavanje....
[18:39:53] [BU:RP] OnGameModeInit se pokrece.
[18:40:16] [BU:RP] System zlata uÄitan.
[18:40:16] [MUSIC] | Ucitan ID 0 | Pjesma: Nema
[18:40:16] [MUSIC] | Ucitan ID 1 | Pjesma: Nema
[18:40:16] [MUSIC] | Ucitan ID 2 | Pjesma: Nema
[18:40:16] [MUSIC] | Ucitan ID 3 | Pjesma: Nema
[18:40:16] [MUSIC] | Ucitan ID 4 | Pjesma: Nema
[18:40:16] [MUSIC] | Ucitan ID 5 | Pjesma: Nema
[18:40:16] [MUSIC] | Ucitan ID 6 | Pjesma: Nema
[18:40:16] [MUSIC] | Ucitan ID 7 | Pjesma: Nema
[18:40:16] [MUSIC] | Ucitan ID 8 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 9 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 10 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 11 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 12 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 13 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 14 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 15 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 16 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 17 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 18 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 19 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 20 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 21 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 22 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 23 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 24 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 25 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 26 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 27 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 28 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 29 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 30 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 31 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 32 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 33 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 34 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 35 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 36 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 37 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 38 | Pjesma: Nema
[18:40:17] [MUSIC] | Ucitan ID 39 | Pjesma: Nema
[18:40:17] [BU:RP] - PD Clanovi ucitani.
[18:40:17] [BU:RP] - PD podesavanja ucitana.
[18:40:17] [BU:RP] - SAJ Clanovi ucitani.
[18:40:17] [BU:RP] - Corsian Mafia Clanovi ucitani.
[18:40:17] [BU:RP] - Novinari Clanovi ucitani.
[18:40:17] [BU:RP] - Taxi Clanovi ucitani.
[18:40:17] [BU:RP] - Parking Servis Clanovi ucitani.
[18:40:17] [BU:RP] - SAJ podesavanja ucitana.
[18:40:17] [BU:RP] - Novinari podesavanja ucitana.
[18:40:17] [BU:RP] - Taxi podesavanja ucitana.
[18:40:17] [BU:RP] - GSF Clanovi ucitani.
[18:40:17] [BU:RP] - GSF podesavanja ucitana.
[18:40:17] [BU:RP] - Nortenos Clanovi ucitani.
[18:40:17] [BU:RP] - Nortenos podesavanja ucitana.
[18:40:17] [BU:RP] - VLA Clanovi ucitani.
[18:40:17] [BU:RP] - VLA podesavanja ucitana.
[18:40:17] [BU:RP] - MS13 Clanovi ucitani.
[18:40:17] [BU:RP] - MS13 podesavanja ucitana.
[18:40:17] [BU:RP] - Sacra Corona Unita Clanovi ucitani.
[18:40:17] [BU:RP] - Sacra Corona podesavanja ucitana.
[18:40:17] [BU:RP] - Yakuza Clanovi ucitani.
[18:40:17] [BU:RP] - TijuanaCartel Clanovi ucitani.
[18:40:17] [BU:RP] - Gulf Cartel Clanovi ucitani.
[18:40:17] [BU:RP] - Mala del Brenta Clanovi ucitani.
[18:40:17] [BU:RP] - Yakuza podesavanja ucitana.
[18:40:17] [BU:RP] - Gulf Cartel podesavanja ucitana.
[18:40:18] [BU:RP] - Mala del Brenta podesavanja ucitana.
[18:40:18] [BU:RP] - Admini ucitani.
[18:40:18] [BU:RP] - Helperi ucitani.
[18:40:18] [BU:RP] - Zaduzenja ucitana.
[18:40:18] [BU:RP] Server podesavanja ucitana.
[18:40:18] [BU:RP] System pocetnickih statsa ucitan.
[18:40:19] [BU:RP] System droge kuce ucitan.
[18:40:19] [BU:RP] System benzina ucitan.
[18:40:19] [BU:RP] Lotto podesavanja ucitana !
[18:40:19] Ucitani labeli.
[18:40:19] Ucitani pickupovi.
[18:40:19] 9245 - ukupno CreateDynamicObjekata.
[18:40:19] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[18:40:19] [debug] Stack pointer (STK) is 0xAEDB3DC, heap pointer (HEA) is 0xAEDB530
[18:40:19] [debug] AMX backtrace:
[18:40:19] [debug] #0 001c69e0 in public FC_OnGameModeInit () from aeronscript.amx
[18:40:19] [debug] #1 native CallLocalFunction () from samp-server.exe
[18:40:19] [debug] #2 001c69e0 in public OnPlPa_OnGameModeInit () from aeronscript.amx
[18:40:19] [debug] #3 native CallLocalFunction () from samp-server.exe
[18:40:19] [debug] #4 001c69e0 in public Itter_OnGameModeInit () from aeronscript.amx
[18:40:19] [debug] #5 native CallLocalFunction () from samp-server.exe
[18:40:19] [debug] #6 001c69e0 in public OnGameModeInit () from aeronscript.amx
[18:40:19]
[18:40:19] Script (( v1.0 )) successfully loaded!
[18:40:19]
[18:40:19] Skripta ucitana za 25771 ms
[18:40:19] Number of vehicle models: 81
[18:41:02] [connection] 127.0.0.1:49551 requests connection cookie.
[18:41:03] [connection] incoming connection: 127.0.0.1:49551 id: 0
[18:41:03] Incoming connection for player ID 0 [IP/port: 127.0.0.1:49551]
[18:41:03] [join] Aeron has joined the server (0:127.0.0.1)
[18:41:13] [debug] Run time error 4: "Array index out of bounds"
[18:41:13] [debug] Accessing element at index 11 past array upper bound 10
[18:41:13] [debug] AMX backtrace:
[18:41:13] [debug] #0 0023f294 in public OnPlPa_OnPlayerSpawn (0) from aeronscript.amx
[18:41:13] [debug] #1 native CallLocalFunction () from samp-server.exe
[18:41:13] [debug] #2 000296ec in ?? (0) from aeronscript.amx
[18:41:13] [debug] #3 0000dba4 in public OnPlayerSpawn (0) from aeronscript.amx
[18:42:34] [debug] Run time error 4: "Array index out of bounds"
[18:42:34] [debug] Accessing element at index 11 past array upper bound 10
[18:42:34] [debug] AMX backtrace:
[18:42:34] [debug] #0 0023f294 in public OnPlPa_OnPlayerSpawn (0) from aeronscript.amx
[18:42:34] [debug] #1 native CallLocalFunction () from samp-server.exe
[18:42:34] [debug] #2 000296ec in ?? (0) from aeronscript.amx
[18:42:34] [debug] #3 0000dba4 in public OnPlayerSpawn (0) from aeronscript.amx
[18:42:56] [debug] Run time error 4: "Array index out of bounds"
[18:42:56] [debug] Accessing element at index 11 past array upper bound 10
[18:42:56] [debug] AMX backtrace:
[18:42:56] [debug] #0 0023f294 in public OnPlPa_OnPlayerSpawn (0) from aeronscript.amx
[18:42:56] [debug] #1 native CallLocalFunction () from samp-server.exe
[18:42:56] [debug] #2 000296ec in ?? (0) from aeronscript.amx
[18:42:56] [debug] #3 0000dba4 in public OnPlayerSpawn (0) from aeronscript.amx
[18:43:08] [debug] Run time error 4: "Array index out of bounds"
[18:43:08] [debug] Accessing element at index 11 past array upper bound 10
[18:43:08] [debug] AMX backtrace:
[18:43:08] [debug] #0 0023f294 in public OnPlPa_OnPlayerSpawn (0) from aeronscript.amx
[18:43:08] [debug] #1 native CallLocalFunction () from samp-server.exe
[18:43:08] [debug] #2 000296ec in ?? (0) from aeronscript.amx
[18:43:08] [debug] #3 0000dba4 in public OnPlayerSpawn (0) from aeronscript.amx
[18:49:12] [AUTOSAVE]: Online korisnicki racuni uspješno spremljeni
[18:53:49] [part] Aeron has left the server (0:1)
Slika/video ingame problema(obavezno ako je ingame problem): link slike