SA-MP Forums Archive
size of string isnt big enough - 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: size of string isnt big enough (/showthread.php?tid=337447)



size of string isnt big enough - xXitsgodzillaXx - 26.04.2012

my string for my police reports isnt big enough its set at "new string[64]" i cant set that to 124 right? or somthing higher at least?


Re: size of string isnt big enough - Shabi RoxX - 26.04.2012

What do you mean ? You can set it to 124 cuz a samp chat line can have 124 characters max .


Re: size of string isnt big enough - Pinguinn - 26.04.2012

Of course you can, why you wouldn't?
Just don't make it too high


Re: size of string isnt big enough - xXitsgodzillaXx - 26.04.2012

Quote:
Originally Posted by Shabi RoxX
Посмотреть сообщение
What do you mean ? You can set it to 124 cuz a samp chat line can have 124 characters max .
i was asking cause i was formatting a string that looks like this "format(string,sizeof string, "Police Dispatcher: All units, we have a 510 at %s location, over.",pName);"

but it would only show this "format(string,sizeof string, "Police Dispatcher: All units, we have a 510 at %s locat"

just an example, ^ lol


Re: size of string isnt big enough - Shabi RoxX - 26.04.2012

Quote:
Originally Posted by xXitsgodzillaXx
Посмотреть сообщение
i was asking cause i was formatting a string that looks like this "format(string,sizeof string, "Police Dispatcher: All units, we have a 510 at %s location, over.",pName);"

but it would only show this "format(string,sizeof string, "Police Dispatcher: All units, we have a 510 at %s locat"

just an example, ^ lol
Increase string size simply .


Re: size of string isnt big enough - xXitsgodzillaXx - 26.04.2012

Quote:
Originally Posted by Shabi RoxX
Посмотреть сообщение
Increase string size simply .
is 124 the biggest it goes? or can it go higher?


Re: size of string isnt big enough - SuperViper - 26.04.2012

Strings can go up to as much as you want, but it's best to use the smallest amount of cells you can.


Re: size of string isnt big enough - MP2 - 26.04.2012

Samp chat can only display 129 characters per line, so just make it 129.


Re: size of string isnt big enough - xXitsgodzillaXx - 26.04.2012

KTHXBAI +REP to you guize.