SA-MP Forums Archive
Help about string ! - 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: Help about string ! (/showthread.php?tid=634842)



Help about string ! - FizzyWalshy - 27.05.2017

Remove -Fixed.


Re: Help about string ! - asri - 27.05.2017

you must make this


PHP код:
new string
i think


Re: Help about string ! - StrikerZ - 27.05.2017

Quote:
Originally Posted by asri
Посмотреть сообщение
you must make this


PHP код:
new string
i think
A string always contains a size.
So that'll be.
PHP код:
new string[SIZE]; 
For example
PHP код:
new string[120]; 



Re: Help about string ! - Beckett - 27.05.2017

It's because the string is not defined, there's no string created to begin with.


Re: Help about string ! - Wary - 27.05.2017

use
PHP код:
new string[256]; 



Re: Help about string ! - StrikerZ - 27.05.2017

Quote:
Originally Posted by Wary
Посмотреть сообщение
use
PHP код:
new string[256]; 
Why 256? That line isn't that big. Even 120 would be enough.