Need help error on gm maybe
#8

Quote:
Originally Posted by jasperschellekens
Посмотреть сообщение
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:
PHP код:
new FPS[30
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:

PHP код:
MAXFPS 32
for(new d=0d<MAXFPS;++d
The loop starts from 0 so the index will never be -1 as the run time error indicates. The only part of code which is yet unknown (as to what value it returns) is
pawn Код:
new rank = GetPlayerRank(playerid);
which is later used in here:
Код:
format(string, sizeof(string),"~w~Rank:%s",gRank[rank][r_name]);
Venom546, provide GetPlayerRank function and gRank initialization.

If you want to know the exact line, you can use -d3 flag. Learn more here: https://github.com/Zeex/samp-plugin-...ith-debug-info
Reply


Messages In This Thread
Need help error on gm maybe - by Venom546 - 04.10.2018, 10:58
Re: Need help error on gm maybe - by Jyothiranand - 04.10.2018, 11:10
Re: Need help error on gm maybe - by Venom546 - 04.10.2018, 11:12
Re: Need help error on gm maybe - by jasperschellekens - 04.10.2018, 11:28
Re: Need help error on gm maybe - by Venom546 - 04.10.2018, 11:29
Re: Need help error on gm maybe - by jasperschellekens - 04.10.2018, 11:34
Re: Need help error on gm maybe - by Venom546 - 04.10.2018, 11:41
Re: Need help error on gm maybe - by Calisthenics - 04.10.2018, 11:47
Re: Need help error on gm maybe - by Venom546 - 05.10.2018, 13:24

Forum Jump:


Users browsing this thread: 1 Guest(s)