[Question] Players.
hey...
how should it be? PHP Code:
PHP Code:
but i get an index out of bounds error on my plugin... so what do you think? |
Re: [Question] Players.
the API is written to accept players[32] This is because index 0-31 are filled with player IDs.
However, when YOU'RE setting data for each player in your plugin, you use 33 so you have index of 1-32. |
Re: [Question] Players.
PHP Code:
|
Re: [Question] Players.
Quote:
|
Re: [Question] Players.
so should i use 33?
|
Re: [Question] Players.
get_players REQUIRES you to use 32 or you will get a compile error.
If you are using it elsewhere, 33 is common since you don't have to use id-1 each time |
Re: [Question] Players.
Quote:
|
Re: [Question] Players.
index 0 or id value 0 is worldspawn entity.
1=>32+1=33, why +1 ( 0 is also a number ) |
Re: [Question] Players.
Quote:
|
Re: [Question] Players.
Quote:
|
| All times are GMT -4. The time now is 08:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.