Hitnoo


Započeo Transportercina, Februar 16, 2020, 16:53:45 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Tokom startanja servera iskoci ovo
Dio skripte:
//

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
[16:48:38] Testiranje compile moda! [Loading 25%]
[16:48:41] [debug] Run time error 4: "Array index out of bounds"
[16:48:41] [debug]  Accessing element at index 39 past array upper bound 38
[16:48:41] [debug] AMX backtrace:
[16:48:41] [debug] #0 004ab0dc in ?? () from lkrpg.amx
[16:48:41] [debug] #1 004d126c in public L_SAM_OnGM () from lkrpg.amx
[16:48:41] [debug] #2 native CallLocalFunction () [080dfac0] from samp03svr
[16:48:41] [debug] #3 00092f10 in public SSCANF_OnGameModeInit () from lkrpg.amx
[16:48:41] [debug] #4 00080244 in public Itter_OnGameModeInit () from lkrpg.amx
[16:48:41] [debug] #5 native CallLocalFunction () [080dfac0] from samp03svr
[16:48:41] [debug] #6 00072f28 in ?? () from lkrpg.amx
[16:48:41] [debug] #7 00058244 in public ScriptInit_OnGameModeInit () from lkrpg.amx
[16:48:41] [debug] #8 00051b30 in public ac_OnGameModeInit () from lkrpg.amx
[16:48:41] [debug] #9 00017670 in public FIXES_OnGameModeInit () from lkrpg.amx
[16:48:41] [debug] #10 0000464c in public OnGameModeInit () from lkrpg.amx
[16:48:41] |- - - - - - - - - - - - - - - - - - - - - - -|

Slika/video ingame problema(obavezno ako je ingame problem): //
MOLIM VAS POMOZITE POCETNIK SAM RADIO SAM DODAVANJE TEXT LABELA KOD VOZILA RENTA ako treba skripta toga dodacu vam u narednim odgovorima
Poslednja Izmena: Februar 18, 2020, 18:55:29 POSLE PODNE od Galardo
Skripter On Duty
Developer on Insomnia Gaming[/size]

OnGameModeInit neki problem

[16:48:38] Testiranje compile moda! [Loading 25%]
[16:48:41] [debug] Run time error 4: "Array index out of bounds"
[16:48:41] [debug]  Accessing element at index 39 past array upper bound 38

Citat: .agency poslato Februar 16, 2020, 18:06:57 POSLE PODNE
OnGameModeInit neki problem

[16:48:38] Testiranje compile moda! [Loading 25%]
[16:48:41] [debug] Run time error 4: "Array index out of bounds"
[16:48:41] [debug]  Accessing element at index 39 past array upper bound 38

oces ti dodam sve sta sam radio na gamemode posto imam odvojeno jedno je lkrpg.pwn drugo je lkmape.pwn trece lkvozila.pwn a od svega imam xml fajl i od lkrpg imam i xml i amx fajl pa ako os deo skripte da ti dam pa vidi do cega jer nije prikazivan na compilu ni jedan error ni warning
Skripter On Duty
Developer on Insomnia Gaming[/size]

Citat: Transportercina poslato Februar 16, 2020, 18:34:16 POSLE PODNE
oces ti dodam sve sta sam radio na gamemode posto imam odvojeno jedno je lkrpg.pwn drugo je lkmape.pwn trece lkvozila.pwn a od svega imam xml fajl i od lkrpg imam i xml i amx fajl pa ako os deo skripte da ti dam pa vidi do cega jer nije prikazivan na compilu ni jedan error ni warning
Stavio si negde 39 a max je 38, proveri to

Verovatno kada si definisao vozila ili tako nesto koristio si vozila[38] umesto [39]
GAD SAM JA

new bes[39];
/////////////////besplatna by skokic
	bes[1] = CreateVehicle(560, 1407.2253, -2261.8689, 13.0934, 0.0000, -1, -1, 100);
	bes[2] = CreateVehicle(560, 1410.3125, -2261.9473, 13.0934, 0.0000, -1, -1, 100);
	bes[3] = CreateVehicle(560, 1403.8121, -2262.0330, 13.0934, 0.0000, -1, -1, 100);
	bes[4] = CreateVehicle(560, 1400.3662, -2262.0298, 13.0934, 0.0000, -1, -1, 100);
	bes[5] = CreateVehicle(560, 1397.1636, -2262.0256, 13.0934, 0.0000, -1, -1, 100);
	bes[6] = CreateVehicle(560, 1394.0496, -2262.0981, 13.0934, 0.0000, -1, -1, 100);
	bes[7] = CreateVehicle(560, 1390.7056, -2262.0916, 13.0934, 0.0000, -1, -1, 100);
	bes[8] = CreateVehicle(560, 1387.5259, -2262.0715, 13.0934, 0.0000, -1, -1, 100);
	bes[9] = CreateVehicle(560, 1384.3462, -2262.1733, 13.0934, 0.0000, -1, -1, 100);
	bes[10] = CreateVehicle(522, 1405.1868, -2242.8589, 13.0207, 0.0000, -1, -1, 100);
	bes[11] = CreateVehicle(522, 1408.0685, -2242.7034, 13.0207, 0.0000, -1, -1, 100);
	bes[12] = CreateVehicle(522, 1411.3695, -2242.9539, 13.0207, 0.0000, -1, -1, 100);
	bes[13] = CreateVehicle(522, 1401.6912, -2242.3816, 13.0207, 0.0000, -1, -1, 100);
	bes[14] = CreateVehicle(522, 1392.1141, -2242.1021, 13.0207, 0.0000, -1, -1, 100);
	bes[15] = CreateVehicle(522, 1395.3732, -2242.1555, 13.0207, 0.0000, -1, -1, 100);
	bes[16] = CreateVehicle(522, 1398.5116, -2242.3687, 13.0207, 0.0000, -1, -1, 100);
	bes[17] = CreateVehicle(522, 1388.7321, -2242.3071, 13.0207, 0.0000, -1, -1, 100);
	bes[18] = CreateVehicle(522, 1385.2532, -2242.1909, 13.0207, 0.0000, -1, -1, 100);
	bes[19] = CreateVehicle(560, 1414.6442, -2313.9709, 13.0693, 0.0000, -1, -1, 100);
	bes[20] = CreateVehicle(560, 1410.9813, -2313.7292, 13.0693, 0.0000, -1, -1, 100);
	bes[21] = CreateVehicle(560, 1407.7535, -2313.7366, 13.0693, 0.0000, -1, -1, 100);
	bes[22] = CreateVehicle(560, 1404.5729, -2313.7354, 13.0693, 0.0000, -1, -1, 100);
	bes[23] = CreateVehicle(560, 1388.1663, -2313.8645, 13.0693, 0.0000, -1, -1, 100);
	bes[24] = CreateVehicle(560, 1401.1350, -2313.6960, 13.0693, 0.0000, -1, -1, 100);
	bes[25] = CreateVehicle(560, 1397.8958, -2313.7620, 13.0693, 0.0000, -1, -1, 100);
	bes[26] = CreateVehicle(560, 1394.7787, -2313.8447, 13.0693, 0.0000, -1, -1, 100);
	bes[27] = CreateVehicle(560, 1391.2494, -2313.8469, 13.0693, 0.0000, -1, -1, 100);
	bes[28] = CreateVehicle(560, 1384.9703, -2313.7939, 13.0693, 0.0000, -1, -1, 100);
	bes[29] = CreateVehicle(522, 1414.6610, -2330.5193, 13.0115, 0.0000, -1, -1, 100);
	bes[30] = CreateVehicle(522, 1385.0676, -2331.3762, 13.0115, 0.0000, -1, -1, 100);
	bes[31] = CreateVehicle(522, 1394.7402, -2331.5771, 13.0115, 0.0000, -1, -1, 100);
	bes[32] = CreateVehicle(522, 1391.7072, -2330.3960, 13.0115, 0.0000, -1, -1, 100);
	bes[33] = CreateVehicle(522, 1388.4863, -2331.4070, 13.0115, 0.0000, -1, -1, 100);
	bes[34] = CreateVehicle(522, 1397.9701, -2330.3008, 13.0115, 0.0000, -1, -1, 100);
	bes[35] = CreateVehicle(522, 1400.9102, -2330.2314, 13.0115, 0.0000, -1, -1, 100);
	bes[36] = CreateVehicle(522, 1403.9723, -2330.1929, 13.0115, 0.0000, -1, -1, 100);
	bes[37] = CreateVehicle(522, 1407.2274, -2330.3831, 13.0115, 0.0000, -1, -1, 100);
	bes[38] = CreateVehicle(522, 1410.4230, -2330.2239, 13.0115, 0.0000, -1, -1, 100);
    for(new be; be < 46; be++)   {
				   CreateDynamic3DTextLabel(""SZELENA"[ FREE ]",-1,0.0,0.0,0.0,15,INVALID_PLAYER_ID, bes[be], 0);
	}

to sam radio.
Skripter On Duty
Developer on Insomnia Gaming[/size]

for(new be; be < 46; be++)

for(new be; be < 39; be++)


Github: Momenzi
Pikaboot: Website

Ovo ti je najjednostavniji nacin


new Text3D:3DText;
new besplatno;
besplatno = AddStaticVehicleEx(411,0,0,0,0,1,1,600);

3DText = Create3DTextLabel( "[FREE]", 0xFFFFFFAA, 0.0, 0.0, 0.0, 15.0, 0, 1 );
Attach3DTextLabelToVehicle( 3DText , besplatno, 0.0, 0.0, 0.0);


Github: Momenzi
Pikaboot: Website

fixano HVALA @Momenzi
Skripter On Duty
Developer on Insomnia Gaming[/size]