SERVER:Unknown command. error even the command works well
#21

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
Код:
for(new i = 0; i < sizeof(pWeapons[][]); i++) {
    	GivePlayerWeapon(playerid, pWeapons[playerid][0][i], pWeapons[playerid][1][i]);
}
You could have easily detect it if you had crashdetect plugin and compiled the code in -d3 mode.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)