[Ajuda] Array index out of bounds
#1

alguem pode me ajuda? eu nao consigo arruma isso, fica floodando isso no server log


[debug] Accessing element at index 65535 past array upper bound 49
[debug] AMX backtrace:
[debug] #0 001765e8 in public OnPlayerPickUpPickup (1, 272) from NEWCITY.amx
[debug] Run time error 4: "Array index out of bounds"

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
   new ExpID = GetProxExp(playerid);
	if(Pickup[ExpID] == pickupid) {
	    new GranaExp = randomEx(50, 100), Str[55];
	    format(Str, 55, "Vocк roubou R$%i,00", GranaExp);
	    SendClientMessage(playerid, LARANJA, Str);
	    GivePlayerMoney(playerid, GranaExp);
	    DestroyPickup(Pickup[ExpID]);
	    Pickup[ExpID] = 0xFFFF;
	}
    return true;
}
Reply


Messages In This Thread
Array index out of bounds - by Cuelinhu - 02.04.2018, 00:02
Re: Array index out of bounds - by FerrariL - 02.04.2018, 00:08
Re: Array index out of bounds - by Cuelinhu - 02.04.2018, 00:41
Re: Array index out of bounds - by FerrariL - 02.04.2018, 00:54
Re: Array index out of bounds - by Cuelinhu - 02.04.2018, 02:02
Re: Array index out of bounds - by Bruno13 - 02.04.2018, 04:21

Forum Jump:


Users browsing this thread: 3 Guest(s)