SA-MP Forums Archive
Char arrays - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Char arrays (/showthread.php?tid=653346)



Char arrays - andrejc999 - 02.05.2018

Hi everyone,

so I've been making my GM for last 2 years (with some breaks ofc) and the other day I read an article about char arrays. They are basically here for us to use when we want to save a variable that's between 0 and 255 and doing this we can save some memory.

So I want to switch my VIP and Helper variable to char (to save those 140kbs ) but the problem is that I can't go through the whole script and change the [] brackets to {} brackets, because it would take me an hour to do it manually. Is there a fast way to do this?

Thanks in advanced.


Re: Char arrays - andrejc999 - 02.05.2018

Nah I actually read a few threads about it and am very introduced to it. Ok I will just forget about it nvm thx.