Započeo Acox
•5. Maj 2018.Problem sa gulaz cmd
679
pregleda
10
postova
Street Runner
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
15
Postovi:
4
Teme:
Pridružio se:Avg. 2017
5. Maj 2018.
Problem(error/warning): Imam problem sa cmd gulaz znaci u skripti nema nijedan error, a kad udjem u server i ukucam g ulaz izbacuje nesto server.log
Dio skripte:
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Slika/video ingame problema(obavezno ako je ingame problem): link slike
Dio skripte:
CMD:gulaz(playerid, params[]) {
new id = GetNearestGarage(playerid);
if(id == -1) return Error(playerid, "Nema garaze u blizini.");
new gtype = GarazaInfo;
if(GarazaInfo == true) return Error(playerid, "Ova garaza je zakljucana.");
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
JBC_SetPlayerPos(playerid, GarageInteriors, GarageInteriors, GarageInteriors);
UsaoInt = 1;
GameTextForPlayer(playerid, "~g~Ucitavanje objekata", 2500, 4);
SetTimerEx("UnfreezemeMacko", 2000, false, "i", playerid);
TogglePlayerControllable(playerid, false);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, floatround(GarageInteriors));
SetPlayerVirtualWorld(playerid, GarazaInfo);
SetPlayerFacingAngle(playerid, GarageInteriors);
EnteredGarage = id;
SendInfoMessage(playerid, "Da izadjete iz garaze kucajte /gizlaz.");
}
else if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
new vehicle = GetPlayerVehicleID(playerid);
LinkVehicleToInterior(vehicle, floatround(GarageInteriors));
SetVehicleVirtualWorld(vehicle, GarazaInfo);
JBC_SetVehiclePos(vehicle, GarageInteriors, GarageInteriors, GarageInteriors);
UsaoInt = 1;
GameTextForPlayer(playerid, "~g~Ucitavanje objekata", 2500, 4);
SetTimerEx("UnfreezemeMacko", 2000, false, "i", playerid);
TogglePlayerControllable(playerid, false);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, floatround(GarageInteriors));
SetPlayerVirtualWorld(playerid, GarazaInfo);
SetVehicleZAngle(vehicle, GarageInteriors);
EnteredGarage = id;
SendInfoMessage(playerid, "Da izadjete iz garaze kucajte /gizlaz.");
}
else return Error(playerid, "Komandu mozes koristiti samo ako si na nogama ili na vozacevom mestu.");
return true;
}Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
[00:32:06] AMX backtrace:
[00:32:06] #0 0068f00c in public cmd_gulaz (0, 37437368) from JMRP.amx
[00:32:06] #1 native CallLocalFunction () from samp-server.exe
[00:32:06] #2 00002740 in public OnPlayerCommandText (0, 37437340) from JMRP.amx
[00:32:07] Run time error 4: "Array index out of bounds"
[00:32:07] Attempted to read/write array element at index 3 in array of size 3Slika/video ingame problema(obavezno ako je ingame problem): link slike
Street Runner
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
17
Postovi:
2
Teme:
Pridružio se:Maj 2018
Street Runner
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
15
Postovi:
4
Teme:
Pridružio se:Avg. 2017
5. Maj 2018.
Yukimuro Natsu wrote on May 5, 2018, 11:41 am:
Izbrisi
OnPlayerCommandText()Opet isto
[13:49:07] Run time error 4: "Array index out of bounds"
[13:49:07] Attempted to read/write array element at index 3 in array of size 3
[13:49:07] AMX backtrace:
[13:49:07] #0 0068ef5c in public cmd_gulaz (0, 37437368) from JMRP.amx
[13:49:07] #1 native CallLocalFunction () from samp-server.exe
[13:49:07] #2 00002740 in public OnPlayerCommandText (0, 37437340) from JMRP.amxStreet Runner
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
17
Postovi:
2
Teme:
Pridružio se:Maj 2018
5. Maj 2018.
Sada lepo skini 0.3.7R2-2 Server (www.sa-mp.com) i prekopiraj includes folder ( replace sve )
Street Runner
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
15
Postovi:
4
Teme:
Pridružio se:Avg. 2017
5. Maj 2018.
Yukimuro Natsu wrote on May 5, 2018, 11:50 am:
Sada lepo skini 0.3.7R2-2 Server (www.sa-mp.com) i prekopiraj includes folder ( replace sve )
UPDATE sam plugine i samp verziju
i dalje je isto
[13:57:47] Run time error 4: "Array index out of bounds"
[13:57:47] Attempted to read/write array element at index 3 in array of size 3
[13:57:47] AMX backtrace:
[13:57:47] #0 0064a98c in public cmd_gulaz (0, 37437368) from JMRP.amx
[13:57:47] #1 native CallLocalFunction () from samp-server.exe
[13:57:47] #2 00002740 in public OnPlayerCommandText (0, 37437340) from JMRP.amxStreet Runner
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
15
Postovi:
4
Teme:
Pridružio se:Avg. 2017
5. Maj 2018.
[15:30:36]
AMX backtrace:
[15:30:36] #0 00671c7c in public cmd_gulaz (0, 37732324) from JMRP.amx
[15:30:36] #1 native CallLocalFunction () from samp-server.exe
[15:30:36] #2 000027bc in public OnPlayerCommandText (0, 37732296) from JMRP.amx
Posle update YSI
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
287
Postovi:
41
Teme:
Pridružio se:Sep. 2014
5. Maj 2018.
e vidis vise ne baca za array , znaci jos je do nekog plugina koji je vezan za komande.. probaj jos zcmd update i mora biti rjeseno jer vidim da imas komandi proces zcmd stari pa se ne podudara sa necime ..
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava