Raised This Month: $ Target: $400
 0% 

Why are global variables always array of [33]?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
QuantumMekkanics
New Member
Join Date: Apr 2021
Old 04-20-2021 , 20:40   Why are global variables always array of [33]?
Reply With Quote #1

Hello AlliedModders forum (again). My old account is MiloSx7 but I haven't been doing AMX for 8 years I can't remember the email or password for the life of me, sorry for creating new account :\

I just have one quick question for now, I'm looking at lots of .sma files right now and everyone makes global arrays that store all players data with [33]. Since there is max 32 players on server allowed, and arrays start from index 0, shouldn't they be defined with [31]?

I have been doing javascript for a very long time now, this looks more like functional programming but the rules should stay the same right? So, why [33]?

Thanks!
QuantumMekkanics 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 02:38.


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