07.09.2018, 14:05
You are using sizeof(pWeapons) as iteration's Upper bound which is MAX_PLAYERS and trying to access the 3rd dimension which has only 12 as upper bound.This will lead to INDEX OUT OF BOUNDS.Use sizeof(pWeapons[][]) instead
You could have easily detect it if you had crashdetect plugin and compiled the code in -d3 mode.
Код:
for(new i = 0; i < sizeof(pWeapons[][]); i++) { GivePlayerWeapon(playerid, pWeapons[playerid][0][i], pWeapons[playerid][1][i]); }