Post: Will settings Vars like this be better?
03-16-2017, 01:35 AM #1
Saber_JZY
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); In my menu will it help to set my Vars like so or no:

self.menu.background = self createrectangle("LEFT","TOP",self.var["var1"],self.var["var2"],self.var["var3"],self.var["var4"],self.var["var5"] etc

Rather than like this:

self.menu.background = self createrectangle("LEFT","TOP",self.var1,self.var2,self.var3,self.var4,self.var5 ect
(adsbygoogle = window.adsbygoogle || []).push({});
03-16-2017, 02:43 AM #2
anthonything
Space Ninja
Originally posted by JZY View Post
In my menu will it help to set my Vars like so or no:

self.menu.background = self createrectangle("LEFT","TOP",self.var["var1"],self.var["var2"],self.var["var3"],self.var["var4"],self.var["var5"] etc

Rather than like this:

self.menu.background = self createrectangle("LEFT","TOP",self.var1,self.var2,self.var3,self.var4,self.var5 ect


No. All variables use the same amount of memory and strings. If you used numerical indexes you could save strings but other than that, not really.

The following user groaned anthonything for this awful post:

ProfoundModz
03-16-2017, 10:09 AM #3
Saber_JZY
Bounty hunter
Originally posted by DamnMagician View Post
No. All variables use the same amount of memory and strings. If you used numerical indexes you could save strings but other than that, not really.


Dam, saving strings is exactly what I attempting to do.
Thanks for tha reply.

The following user thanked Saber_JZY for this useful post:

anthonything

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo