Moram ponovo unlock ovu temu, nisam riješio ovo...MEDO wrote on August 1, 2016, 4:03 pm:
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 );
//---------------
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] Run time error 4: "Array index out of bounds"
[09:12:49] Accessing element at index 25361972 past array upper bound 49
[09:12:49] AMX backtrace:
[09:12:49] #0 002c2918 in public CB_OnGameModeInit () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\gamemodes\mumascript.pwn:22520
[09:12:49] #1 0001f65c in public zcmd_OnGameModeInit () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\pawno\include\newsamp.inc:444
[09:12:49] #2 native CallLocalFunction () from samp-server.exe
[09:12:49] #3 0001d50c in ?? () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\pawno\include\zcmd.inc:68
[09:12:49] #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] #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] #6 00000868 in public OnGameModeInit () at C:\Users\Deisy\Desktop\Insanity Gaming v1.0\pawno\include\sscanf2.inc:174