Cut a line in two
#1

Ok i'm having a problem with strings, i reached the limit but i need to put more words into the string!
So, my question is:
How to cut a string in two lines and simply put it under the first one?
pawn Code:
new Adminhelp4[] = "/BLAH /BLAH /BLAH /BLAH /BLAH /BLAH /BLAH /BLAH /BLAH /BLAH /BLAH /BLAH"
This line above is too long, so can i cut it like this?
pawn Code:
new Adminhelp4[] = "/BLAH /BLAH /BLAH /BLAH /BLAH /BLAH /BLAH
 /BLAH /BLAH /BLAH /BLAH /BLAH"
Plz help!
Reply
#2

*BUMP*
Reply
#3

Yes you can.
Reply
#4

Quote:
Originally Posted by varthshenon
View Post
Yes you can.
Quote:

So, my question is:
How to cut a string in two lines and simply put it under the first one?

He is also asking how ...
Reply
#5

pawn Code:
new Adminhelp4[] = "/BLAH /BLAH /BLAH /BLAH /BLAH /BLAH /BLAH\
 /BLAH /BLAH /BLAH /BLAH /BLAH"
;
Use a '\' at the end of the line. This is needed to carry the string to the next line.
Reply
#6

Quote:
Originally Posted by Kingunit
View Post
He is also asking how ...
Quote:
Originally Posted by Black_Sun1
View Post
This line above is too long, so can i cut it like this?
pawn Code:
new Adminhelp4[] = "/BLAH /BLAH /BLAH /BLAH /BLAH /BLAH /BLAH
 /BLAH /BLAH /BLAH /BLAH /BLAH"
He did already.
Oh, I thought there's \ already there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)