Odd amx backtrace error.. after .3e -> .3z
#1

I've been using the same old login system in .3e... but all of a sudden, i convert to .3z, compile /w plugins, and i get this shit popping up in my serv after logging in... it damn sure ain't MY code cause I haven't modified it, so something must've changed somewhere along the update.

Код:
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at index 155908 past array upper bound 499
[debug] AMX backtrace:
[debug] #0 0002c948 in ?? () from lvrp.amx
[debug] #1 00010498 in public OnDialogResponse () from lvrp.amx
Also

I put little prints to the console between my lines of code... but the error happened AFTER printing them all out to the console. So whatever happens here, it must happen after OnPlayerDialogue does it's "return 1;"

Also, this happens right after typing in your password, and logging in. Doesn't happen before it.

update:

Код:
[debug] #0 00036320 in public S@@_OnPlayerClickMap (playerid=155908, Float:fX=0.
00000, Float:fY=0.00000, Float:fZ=0.00000, ... <1 variable argument>) at gamemodes\lvrp.
pwn:3001
[debug] #1 00012ff0 in public OnDialogResponse (playerid=155908, dialogid=1, res
ponse=1, listitem=1, inputtext[]=@0x00000001 !"") at \pawno\include\YSI\y_hooks/impl.inc:
2251
Reply
#2

Enable debugging. Compile with flags '-d3'. Create a file called pawn.cfg in the pawno directory and put '-d3' in it.
Reply
#3

Код:
[debug] #0 00036320 in public S@@_OnPlayerClickMap (playerid=155908, Float:fX=0.
00000, Float:fY=0.00000, Float:fZ=0.00000, ... <1 variable argument>) at gamemodes\lvrp.
pwn:3001
[debug] #1 00012ff0 in public OnDialogResponse (playerid=155908, dialogid=1, res
ponse=1, listitem=1, inputtext[]=@0x00000001 !"") at \pawno\include\YSI\y_hooks/impl.inc:
2251
So... YSI just isn't fully compatible with the new version I guess?
Reply
#4

Not sure. Seems odd that the playerid is 155908..
Reply
#5

Thats what I'm saying... and its the same old code from before... im not doing playerid + 10000000(exaggerating) in my code... lol

impl.inc:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	P:2("Hooks_OnDialogResponse called: %d, %d, %d, %d, \"%s\"", playerid, dialogid, response, listitem, inputtext);
	new
		end   = _:YSI_g_sCallbackEnd[ALS_OnDialogResponse],
		start = _:YSI_g_sCallbackStart[ALS_OnDialogResponse],
		ret = ALS_R_DialogResponse;
[line 2251]	while (start++ != end) [<-states error resides/starts here]
	{
		#emit PUSH.S inputtext
		#emit PUSH.S listitem
		#emit PUSH.S response
		#emit PUSH.S dialogid
		#emit PUSH.S playerid
		#emit PUSH.C     20
		#emit CONST.alt  YSI_g_sCallbackAddresses
		#emit LOAD.S.pri start
		//#emit INC.pri
		//#emit STOR.S.pri start
		#emit LIDX
		#emit MOVE.alt
		#emit LCTRL      6
		#emit ADD.C      24
		#emit PUSH.pri
		#emit MOVE.pri
		#emit SCTRL      6
		#emit MOVE.alt
		#emit CONST.pri  0xFFFFFFFE
		#emit AND
		#emit PUSH.pri
		#emit LOAD.S.pri ret
		#emit AND
		#emit POP.alt
		#emit OR
		#emit STOR.S.pri ret
		if (ret < 0) return ret + 1;
	}
	return ret;
}
Reply
#6

Took this out everything runs ok lol.



Код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
	if(PlayerInfo[playerid][pAdminLevel] >= 4 && PlayerInfo[playerid][pAdminDuty] >= 1) {
		SetPlayerPosFindZ(playerid, fX, fY, fZ); 
	}
}
So i think Ysi got some issues
Reply
#7

Quote:
Originally Posted by Limbo
Посмотреть сообщение
Код:
[debug] #0 00036320 in public S@@_OnPlayerClickMap (playerid=155908, Float:fX=0.
00000, Float:fY=0.00000, Float:fZ=0.00000, ... <1 variable argument>) at gamemodes\lvrp.
pwn:3001
[debug] #1 00012ff0 in public OnDialogResponse (playerid=155908, dialogid=1, res
ponse=1, listitem=1, inputtext[]=@0x00000001 !"") at \pawno\include\YSI\y_hooks/impl.inc:
2251
So... YSI just isn't fully compatible with the new version I guess?
You updated from 0.3e right? Perhaps your YSI is old aswell. Did you try re-downloading it aswell?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)