Nex-AC Errori u Logu

1. Jun 2020.
499
pregleda
2
postova
Nikola4
4
Made Man
1. Jun 2020.
Problem(error/warning): Nex-AC mi bac neke errore u logu
Dio skripte: Linija 10707
format(ChatText, 128, ChatText[i+1]);
ceo taj stock
stock SendALTC(msgstr[], color[]="white")
{
new string[ 164 ];
format( string, sizeof( string ), "%s", msgstr );
new f=0;
if(PogresnaBojaALTC(color) == 0) return print("Unesena neispravna boja altchat proveri sring.");
for(new i=0; i {
if(!strlen(ChatText) || ChatText == ' ')
{
format(ChatText, 128, "%s%s", BrojeALTC(color), msgstr);
TextDrawSetString(ChatLine, ChatText);
f=1;
return 1;
}
}
if(!f)
{
for(new i=0; i {
if(i == 9) {format(ChatText, 128, "%s%s", BrojeALTC(color), msgstr); TextDrawSetString(ChatLine, ChatText); return 1;}
if(strlen(ChatText) && ChatText != ' ')
{
format(ChatText, 128, ChatText[i+1]);
TextDrawSetString(ChatLine, ChatText);
}

}
}
return 0;
}

Linija 18334 (oznacio sam komentarom // dole)
forward OnCheatDetected( playerid, ip_address[], type, code );
public OnCheatDetected( playerid, ip_address[], type, code ) {
format( globalstring, sizeof(globalstring), "~r~(AC) ~w~Igrac %s - %s", ImeIgraca( playerid ), type );
SendALTC( globalstring ); // OVO JE TA LINIJA
return 1;
}

Nex-AC Linija 9093 (oznacio sam komentarom // dole)
static ac_KickWithCode(playerid, ip_address[], type, code, code2 = 0)
{
if(type == 0 && (!IsPlayerConnected(playerid) || ACInfo > 0)) return 0;
#if AC_USE_STATISTICS
ac_sInfo++;
switch(code)
{
case 0..35, 37, 39, 51: ac_sInfo++;
case 36, 38, 40, 41, 50: ac_sInfo++;
case 42: ac_sInfo++;
case 47..49: ac_sInfo++;
case 43..46: ac_sInfo++;
}
#endif
#undef AC_USE_STATISTICS
#if defined NO_SUSPICION_LOGS
#pragma unused code2
#else
new ac_strtmp;
if(code2) format(ac_strtmp, sizeof ac_strtmp, " (%d)", code2);
if(type) printf(SUSPICION_2, ip_address, code, ac_strtmp);
else printf(SUSPICION_1, playerid, code, ac_strtmp);
#endif
#if defined OnCheatDetected
OnCheatDetected(playerid, ip_address, type, code);
#else
ac_OnCheatDetected(playerid, ip_address, type, code);
#endif
return 0; // TO JE OVA LINIJA
}

Nex-AC Linija 6074 (oznacio sam komentarom // dole)
		if(ACInfo)
{
#if defined VectorSize
new Float:ac_dist = GetPlayerDistanceFromPoint(playerid, ACPickInfo, ACPickInfo, ACPickInfo),
Float:ac_dist_set = VectorSize(ACInfo - ACPickInfo, ACInfo - ACPickInfo, (ACInfo ? ACPickInfo : ACInfo) - ACPickInfo);
#else
new Float:ac_dist = GetPlayerDistanceFromPoint(playerid, ACPickInfo, ACPickInfo, ACPickInfo),
Float:ac_dist_set = floatsqroot(floatpower(ACInfo - ACPickInfo, 2.0) + floatpower(ACInfo - ACPickInfo, 2.0) + floatpower((ACInfo ? ACPickInfo : ACInfo) - ACPickInfo, 2.0));
#endif
if(ac_dist > 15.0 && (ACInfo == -1 || ac_dist_set > 15.0))
{
#if defined DEBUG
printf("[Nex-AC debug] Pickupid: %d, dist: %f, dist set: %f, acSet: %d, playerid: %d",
pickupid, ac_dist, ac_dist_set, ACInfo, playerid);
#endif
#if defined OnCheatDetected
ac_KickWithCode(playerid, "", 0, 6, 1);
#endif
return 0; // TO JE OVA LINIJA
}
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
[11:49:38] [Nex-AC debug] Pickupid: 19, dist: 2327.254150, dist set: 2327.126953, acSet: -1, playerid: 0
[11:49:38] [Nex-AC] Sumnjiv Igrac ID 0. Razlog: 006 (1)
[11:49:38] Run time error 4: "Array index out of bounds"
[11:49:38]   Accessing element at index 9 past array upper bound 8
[11:49:38] AMX backtrace:
[11:49:38] #0 005094fc in SendALTC (msgstr[]=@02f79304 "~r~(AC) ~w~Igrac Warning - ", color[]=@0364e5c4 "white") at F:\Users\Nikola\Desktop\LG-OGC\gamemodes\LGOGC.pwn:10707
[11:49:38] #1 005ae4b0 in public OnCheatDetected (playerid=0, ip_address[]=@001a8c7c "", type=0, code=6) at F:\Users\Nikola\Desktop\LG-OGC\gamemodes\LGOGC.pwn:18334
[11:49:38] #2 0004aa14 in ac_KickWithCode (playerid=0, ip_address[]=@001a8c7c "", type=0, code=6, code2=1) at F:\Users\Nikola\Desktop\LG-OGC\pawno\include\nex-ac.inc:9093
[11:49:38] #3 0002bc7c in public OnPlayerPickUpPickup (playerid=0, pickupid=19) at F:\Users\Nikola\Desktop\LG-OGC\pawno\include\nex-ac.inc:6074

Slika/video ingame problema(obavezno ako je ingame problem): link slike
Alhemičar
3
Hustler
1. Jun 2020.
type je integer a ne string iirc 😁

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha