Very long string
#4

Quote:
Originally Posted by ricardo178
Посмотреть сообщение
1 word for that: Impossible.

Max string size in sa-mp is 1024...
Please don't say things like that when you have no idea what your talking about.

EDIT: Why would you want to store a very long string?

EDIT2: Anyways, the best way for memory consumption for any variable in PAWN is to make it a local variable and not global, because it will be deleted when it goes out of scope, if it is local. And global variables stay in memory until the program closes.

Just make the array as large as you need it to be, and if you get no errors or warnings when you compile/run you should be OK (as long as its not too big). Just avoid using global variables whenever possible especially large arrays.
Reply


Messages In This Thread
Very long string - by Azazelo - 10.06.2012, 19:54
Re : Very long string - by ricardo178 - 10.06.2012, 20:31
Re: Re : Very long string - by FalconX - 10.06.2012, 20:37
Re: Re : Very long string - by iggy1 - 10.06.2012, 20:49
Re: Very long string - by Revo - 10.06.2012, 20:52

Forum Jump:


Users browsing this thread: 1 Guest(s)