04.10.2018, 11:34
My guess is that you are looping trough all players.
Okay so lets imagine MAX_PLAYERS is 50 for now.
So you are looping 50 times.
When you have this:
You are getting the error Array index out of bounds i think.
The thing is that it is looking for FPS[31] it the 31th loop while it isnt there.
Same for others such as: gAirdrop[i][AIRDROP_EXIST]
What you could do is increasing their sizes, which i do not recommend or you could create a new loop for them like:
Okay so lets imagine MAX_PLAYERS is 50 for now.
So you are looping 50 times.
When you have this:
PHP код:
new FPS[30]
The thing is that it is looking for FPS[31] it the 31th loop while it isnt there.
Same for others such as: gAirdrop[i][AIRDROP_EXIST]
What you could do is increasing their sizes, which i do not recommend or you could create a new loop for them like:
PHP код:
MAXFPS = 32
for(new d=0; d<MAXFPS;++d)