size of string isnt big enough
#1

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?
Reply
#2

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

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

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
Reply
#5

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 .
Reply
#6

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

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

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

KTHXBAI +REP to you guize.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)