19.07.2014, 09:43
When you declare an array with size of MAX_PLAYERS, the valid bounds are between 0 and MAX_PLAYERS-1. So using "<=" instead of "<" or "!=" will give the run time error 4.
Replace every player loop from:
to:
and also a suggestion - use foreach for player loops. It's much faster!
Replace every player loop from:
pawn Код:
for(i=0;i<=MAX_PLAYERS;i++)
pawn Код:
// correct:
for(i=0;i<MAX_PLAYERS;i++)