[REÅ ENO] debug + savjet


Započeo Muma, Jul 31, 2016, 19:52:34 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

*Muma: Riješeno je, bio sam slučajno obrisao 1 dio na KreirajEnterijer i to je pravilo problem.

Skripta koju koristim: Athlone ofc :D
Detaljan opis problema: Debug, samo sto ja to ne znam "citati" pa ovdje trazim pomoc xD
Dio skripte: Nmp ni sta je problem..
Neke slike/video za lakse dobivanje pomoci(neobavezno):
[19:21:46] [debug] Run time error 4: "Array index out of bounds"
[19:21:46] [debug]  Accessing element at index 25567336 past array upper bound 49
[19:21:46] [debug] AMX backtrace:
[19:21:46] [debug] #0 00420230 in public CB_OnGameModeInit () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\gamemodes\mumascript.pwn:22776
[19:21:46] [debug] #1 0001f65c in public zcmd_OnGameModeInit () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\pawno\include\newsamp.inc:444
[19:21:46] [debug] #2 native CallLocalFunction () from samp-server.exe
[19:21:46] [debug] #3 0001d50c in ?? () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\pawno\include\zcmd.inc:68
[19:21:46] [debug] #4 0000d888 in public ScriptInit_OnGameModeInit () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\pawno\include\YSI\y_hooks/impl.inc:484
[19:21:46] [debug] #5 000071bc in public SSCANF_OnGameModeInit () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\pawno\include\YSI\internal\..\y_scriptinit.inc:171
[19:21:46] [debug] #6 00000868 in public OnGameModeInit () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\pawno\include\sscanf2.inc:174
[19:21:46] Insanity Gaming - www.insanity-gaming.com
[19:21:46] v1.0 gamemode - Loading...
[19:21:46] v1.0 gamemode - Loaded.
[19:21:46] v1.0 gamemode by Muma
[19:21:46] Number of vehicle models: 1
[19:22:02] [connection] 127.0.0.1:51734 requests connection cookie.
[19:22:03] [connection] incoming connection: 127.0.0.1:51734 id: 0
[19:22:04] [join] Muma has joined the server (0:127.0.0.1)
[19:23:44] [part] Muma has left the server (0:1)




O kakvom savjetu se radi: Da li se moze i kako bi mogao ako moze da napravim na brzinomjeru, da mi preview model vozila boja uvijek bude bijela ?
Detaljan opis savjeta: Napisao sam
Komentar: Da ne pravim 2 posta i onako vec dovoljno spamam na ovom forumu xD
Poslednja Izmena: Avgust 22, 2016, 03:02:47 PRE PODNE od [IG] Muma




22773: for( new askid = 1; askid < MAX_ASKQS; askid++ ) {
22774: askqList[ askid ][ askqSend ] = false;
22775: askqList[ askid ][ askqID ] = -1;
22776:
22777: strmid( askqList[ askid ][ askqOwner ], "None", 0, strlen( "None" ), 32 );
22778: strmid( askqList[ askid ][ askqQuestion ], "None", 0, strlen( "None" ), 128 );
22779: }

daj definiciju askqList

"They have computers, and they may have other weapons of mass destruction."

Moram ponovo unlock ovu temu, nisam riješio ovo...

Citat: MEDO poslato Avgust 01, 2016, 18:03:12 POSLE PODNE
daj definiciju askqList
Mislim da nije problem u sistemu pitanja, nema ni tačke viška nego u originalnom Athloneu, a na njemu ne baca debug...


Spominje se OnGameModeInit, pa evo cijeli...

public OnGameModeInit( ) {

	SetGameModeText( VERZIJA_MODA );
	SendRconCommand( "language "MAP_NAME"" );
	
	EnableStuntBonusForAll( 0 );
	DisableInteriorEnterExits( );
	ManualVehicleEngineAndLights( );
    AllowInteriorWeapons( 1 );
    ShowPlayerMarkers( 2 );
    KreirajObjekte( );
    ServerInfo[ HangarPaket ] = true;

    #if ZIMSKI_MOD == 1
    SetWeather( 38 );
    ServerInfo[ Prognozasys ] = 38;
    #else
    ServerInfo[ Prognozasys ] = 10;
    SetWeather( 10 );
    #endif

    MapAndreas_Init( MAP_ANDREAS_MODE_FULL );

    LoadScriptfiles( );
    LoadVehicles( );
    CreateMapIcons( );
    CreateTextDraws( );
    DefineGatesAndDoors( );
    CreatePickupsAnd3Ds( );
    ResetAllFarmPlants( );
    PostaviParoveKladionica( );

	new year, month, day;
    getdate( year, month, day );

    gettimeEx(ghour, gminute, gsecond);
	FixHour(ghour);
	ghour = shifthour;
	if( !realtime ) {
		SetWorldTime(wtime);
		ServerInfo[ VremeInGame ] = wtime;
	}

	AntiDeAMX();
	
    farmerField = CreateDynamicRectangle( -1198.3669, -1065.8173, -1002.0459, -909.7990 );
    bankSafe = CreateDynamicRectangle( -111.5040, 1128.8632, -99.8742, 1135.6432 );
    ZlataraSef = CreateDynamicRectangle( -104.0000, -93.0886, -97.3892, -79.4000 );
    FarmerPosao = CreateDynamicRectangle( -1224.0177, -1220.6852, -1027.5038, -1064.8070 );
    SSB = CreateDynamicRectangle( 1951.0851, -1744.1436, 1966.6748, -1723.7572 );
    KosacMost = CreateDynamicRectangle( 1956.7731, -1262.3374, 1985.3881, -1138.9209 );
	ZgradaNeka = CreateDynamicRectangle( 1521.3862, -1378.1085, 1564.0503, -1333.2006 );
    GSFMost = CreateDynamicRectangle( 2412.8169, -1722.5156, 2447.5449, -1575.6823 );

    CreateActor( 12, -2436.4424, 995.2935, -20.5350, 176.8919 );
	CreateActor( 40, -2436.6335, 1006.5629, -20.5350, 359.8802 );
	CreateActor( 55, -2448.6267, 1006.4838, -20.5350, 357.6869 );
	CreateActor( 64, -2448.4248, 996.1221, -20.5350, 180.0251 );

   	new KurvaP1 = CreateActor( 63, -2411.0474, 994.7935, -20.4423, 6.7633 );
    new KurvaP2 = CreateActor( 64, -2412.1418, 993.2431, -20.4423, 123.0319 );
    new KurvaP3 = CreateActor( 152, -2391.5752, 993.4570, -20.4423, 116.0734 );
    new KurvaP4 = CreateActor( 207, -2393.1602, 1023.3606, -20.3654, 123.7557 );
    new KurvaP5 = CreateActor( 238, -2401.6619, 1022.3336, -20.3654, 90.2079 );
    ApplyActorAnimation( KurvaP1, "STRIP", "strip_A", 4.0, 1, 1, 1, 1, 0 );
    ApplyActorAnimation( KurvaP2, "STRIP", "strip_B", 4.0, 1, 1, 1, 1, 0 );
    ApplyActorAnimation( KurvaP3, "STRIP", "strip_C", 4.0, 1, 1, 1, 1, 0 );
    ApplyActorAnimation( KurvaP4, "STRIP", "strip_D", 4.0, 1, 1, 1, 1, 0 );
    ApplyActorAnimation( KurvaP5, "STRIP", "strip_E", 4.0, 1, 1, 1, 1, 0 );

   	CreateActor( 214, -2397.2646, 1000.3264, -20.4355, 274.2271 );
    CreateActor( 214, -2400.5500, 1004.2144, -20.4355, 7.7475 );
    CreateActor( 214, -2404.1775, 1000.7347, -20.4355, 90.6983 );
    CreateActor( 214, -2400.6917, 997.1736, -20.4355, 176.6360 );

    CreateActor( 214, 1604.4065, -1184.7617, 24.3658, 5.1551 );
    CreateActor( 214, 1601.7363, -1184.7601, 24.3658, 5.3849 );

	//-------[Interijeri]--------
	KreirajInterijer( "OpstinaLS", 1480.8291, -1761.6991, 13.5606, 676.8755, -95.9568, -77.4017, 1, 0, 1, 0);
    KreirajInterijer( "AutoskolaLS", 1219.2517, -1811.7035, 16.5938, -195.7334, 1000.5235, 3, 0, 1, 0);
    KreirajInterijer( "Zlatara", 2792.8057, -1087.5128, 30.7188, -102.7025, -52.9771, 1000.7100, 1, 0, 1, 0);
    KreirajInterijer( "Banka", 1570.5249, -1337.3317, 16.4844, -62.6896, 1115.4862, -28.1228, 1, 0, 1, 0);

    for( new askid = 1; askid < MAX_ASKQS; askid++ ) {
		askqList[ askid ][ askqSend ] = false;
		askqList[ askid ][ askqID ] = -1;

		strmid( askqList[ askid ][ askqOwner ], "None", 0, strlen( "None" ), 32 );
		strmid( askqList[ askid ][ askqQuestion ], "None", 0, strlen( "None" ), 128 );
	}

	if( realtime ) {
		new tmphour,
		    tmpminute,
		    tmpsecond,
		    stringicc[ 30 ];

		gettimeEx( tmphour, tmpminute, tmpsecond );
		FixHour( tmphour );
		tmphour = shifthour;
		SetWorldTime( tmphour );
		ServerInfo[ VremeInGame ] = tmphour;

 		format( stringicc, sizeof( stringicc ), "%s%d:%s%d:%s%d - %d/%d/%d", (tmphour < 10) ? ("0") : (""), tmphour, (tmpminute < 10) ? ("0") : (""), tmpminute, (tmpsecond < 10) ? ("0") : (""), tmpsecond, day, month, year );
		TextDrawSetString( IGGLAVNI[ 5 ], stringicc );
	}
	return true;
}




I evo ponovo debug...

[09:12:49] [debug] Run time error 4: "Array index out of bounds"
[09:12:49] [debug]  Accessing element at index 25361972 past array upper bound 49
[09:12:49] [debug] AMX backtrace:
[09:12:49] [debug] #0 002c2918 in public CB_OnGameModeInit () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\gamemodes\mumascript.pwn:22520
[09:12:49] [debug] #1 0001f65c in public zcmd_OnGameModeInit () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\pawno\include\newsamp.inc:444
[09:12:49] [debug] #2 native CallLocalFunction () from samp-server.exe
[09:12:49] [debug] #3 0001d50c in ?? () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\pawno\include\zcmd.inc:68
[09:12:49] [debug] #4 0000d888 in public ScriptInit_OnGameModeInit () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\pawno\include\YSI\y_hooks/impl.inc:484
[09:12:49] [debug] #5 000071bc in public SSCANF_OnGameModeInit () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\pawno\include\YSI\internal\..\y_scriptinit.inc:171
[09:12:49] [debug] #6 00000868 in public OnGameModeInit () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\pawno\include\sscanf2.inc:174



Zbog ovakvih stvari sam prestao da radim na Athlone modu
Sve ok ali opet neko sranje  :'(

Citat: Ado Master poslato Avgust 17, 2016, 13:26:29 POSLE PODNE
Zbog ovakvih stvari sam prestao da radim na Athlone modu
Sve ok ali opet neko sranje  :'(
Mnogi su prestali, izgleda da samo ja imam živaca za taj mod. A ovo sam ja nešto zeznuo ali sam tek shvatio poslije par dana kada sam uradio/promijenio još neke sisteme pa nisam mogao fixati...



Ne znam zasto razbijas glavu oko sitnice neke iskreno, mislim debug retko koji ce ti napraviti neki problem sa serverom, jedina mana je sto spama u logu ako je crashdetector ukljucen nista vise :)

Citat: â–... â–† â–ˆ Rudimental â–ˆ â–† â–... poslato Avgust 18, 2016, 00:22:15 PRE PODNE
Ne znam zasto razbijas glavu oko sitnice neke iskreno, mislim debug retko koji ce ti napraviti neki problem sa serverom, jedina mana je sto spama u logu ako je crashdetector ukljucen nista vise :)
Ma et' onako, želim da bude sve čisto. Postavi prefix riješeno. :)