[HELP] Adjust Code
Sometimes this plugin fails.
Example: The best player only kill 10 players and the colorchat says killed 11 or 12. What is wrong? (The server have 32 slots) Code:
|
Re: [HELP] Adjust Code
Change from [32] to [33].
|
Re: [HELP] Adjust Code
That?
Code:
|
Re: [HELP] Adjust Code
Quote:
PHP Code:
|
Re: [HELP] Adjust Code
Remember that when declaring an array, you specify how many "slots" it has. When referencing these slots later, the first slot is '0'. Second one is '1'. Etc.
So when declaring a new array of size 33, the first position in the array is 1-1 (0), and the last is 33-1 (32). |
Re: [HELP] Adjust Code
So that is good?
Code:
|
Re: [HELP] Adjust Code
Threads titles muts be descriptive.
Please read rules : https://forums.alliedmods.net/misc.php?do=showrules Closed. |
All times are GMT -4. The time now is 22:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.