Raised This Month: $ Target: $400
 0% 

Solved Why 33+32?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 12-30-2020 , 11:49   Why 33+32?
Reply With Quote #1

Hello, i'm just confused.

Why plugin authors use [33][32]? It's should [32][32] right? Since maxplayers in server is only 32.

Code example: The code is from admin check plugin


new adminnames[33][32]
this matrix is created with 33 rows and 32 columns to store names. Since max players are 32, the column 32 represents each player’s name. Why need 33 rows and why need 2D array?
__________________

Last edited by nG_getwreck; 01-12-2021 at 13:13.
nG_getwreck is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode