AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Question about player variables (https://forums.alliedmods.net/showthread.php?t=299475)

eyal282 07-15-2017 17:04

Question about player variables
 
Why does every single plugin ( including mine until I got awareness ) uses new Variable[33] instead of Variable[32] and use Variable[0] as an instance?

It will work using new Variable[32] and setting it always as id - 1 right?

jimaway 07-15-2017 19:12

Re: Question about player variables
 
yes it will work

klippy 07-16-2017 04:46

Re: Question about player variables
 
Processor time is much more valuable than 4 bytes of memory. Also makes the code easier to interpret (by humans). Just stick to 33.


All times are GMT -4. The time now is 23:02.

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