Dio skripte: #0
forward LoadVports( );
public LoadVports( ) {
if( fexist( F_VPORT ) ) {
new File:_h_handler = fopen( F_VPORT, io_read ), _l_str, i = 0;
new arrCoords[ 6 ][ 64 ];
while( fread( _h_handler, _l_str ) ) {
split( _l_str, arrCoords, ',' );
vportInfo[ i ][ vportID ] = strval( arrCoords[ 0 ] );
vportInfo[ i ][ vportCreated ] = strval( arrCoords[ 1 ] );
strmid( vportInfo[ i ][ vportName ], arrCoords[ 2 ], 0, strlen( arrCoords[ 2 ] ), 255);
vportInfo[ i ][ vportPos ][ 0 ] = floatstr( arrCoords[ 3 ] );
vportInfo[ i ][ vportPos ][ 1 ] = floatstr( arrCoords[ 4 ] );
vportInfo[ i ][ vportPos ][ 2 ] = floatstr( arrCoords[ 5 ] );
i++;
}
fclose(_h_handler);
}
return 1;
}#1
skinlist = LoadModelSelectionMenu("skins.txt");Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Run time error 4: "Array index out of bounds"
[19:25:31] Accessing element at index 100 past array upper bound 99
[19:25:31] AMX backtrace:
[19:25:31] #0 005813c0 in public LoadVports () at C:\Users\eesio\Desktop\Athlone Communy GameMod\gamemodes\Indigo.pwn:21623
[19:25:31] #1 0062c130 in LoadScriptfiles () at C:\Users\eesio\Desktop\Athlone Communy GameMod\gamemodes\Indigo.pwn:29238
[19:25:31] #2 00634894 in public CB_OnGameModeInit () at C:\Users\eesio\Desktop\Athlone Communy GameMod\gamemodes\Indigo.pwn:29718
[19:25:31] #3 0001f890 in public zcmd_OnGameModeInit () at C:\Users\eesio\Desktop\Athlone Communy GameMod\pawno\include\newsamp.inc:444
[19:25:31] #4 native CallLocalFunction () from samp-server.exe
[19:25:31] #5 0001d740 in ?? () at C:\Users\eesio\Desktop\Athlone Communy GameMod\pawno\include\zcmd.inc:68
[19:25:31] #6 0000dabc in public ScriptInit_OnGameModeInit () at C:\Users\eesio\Desktop\Athlone Communy GameMod\pawno\include\YSI\y_hooks/impl.inc:484
[19:25:31] #7 000073f0 in public SSCANF_OnGameModeInit () at C:\Users\eesio\Desktop\Athlone Communy GameMod\pawno\include\YSI\internal\..\y_scriptinit.inc:171
[19:25:31] #8 native CallLocalFunction () from samp-server.exe
[19:25:31] #9 000009f0 in public OnGameModeInit () at C:\Users\eesio\Desktop\Athlone Communy GameMod\pawno\include\sscanf2.inc:82
[19:25:31] Indigo Gaming Community | wwww.indigo-ogc.eu
[19:25:31] Uspesno je ucitan mod..
[19:25:31] Verzija: IGaming v1.0 © by Ivan
[19:25:31] Ivan Script 2k18
[19:25:31] Number of vehicle models: 0
[19:27:11] --- Server Shutting Down.Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/w6v1kBh
