02.04.2018, 00:02
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"
[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; }