Author Topic: how to use BR for new line  (Read 835 times)

0 Members and 1 Guest are viewing this topic.

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
how to use BR for new line
« on: July 28, 2008, 06:37:46 pm »
I simply can't use it...
do I need to wait for scripcore v2.6.4?

DrawText(1,'I am not' + br +  'getting...',98,$123321,0.12,18,355);
"unkown br identifier"
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: how to use BR for new line
« Reply #1 on: July 28, 2008, 07:22:53 pm »
You need to declare br as const:

br = #13#10;
Soldat Global Account System: #soldat.sgas @ quakenet

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: how to use BR for new line
« Reply #2 on: July 28, 2008, 07:54:51 pm »
that worked, thanks
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: how to use BR for new line
« Reply #3 on: July 29, 2008, 01:10:36 am »
This is Pascal not bloody HTML -_-....

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: how to use BR for new line
« Reply #4 on: July 29, 2008, 03:24:10 am »
You need to declare br as const:

br = #13#10;
ooh I was wondering how to do that... \n wasn't being nice to me.

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: how to use BR for new line
« Reply #5 on: July 29, 2008, 04:06:20 am »
Can't you just do this?

Code: [Select]
DrawText(1,'I am not
getting...',98,$123321,0.12,18,355);
I saw it in some script.

It does look quite messy though...
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: how to use BR for new line
« Reply #6 on: July 29, 2008, 04:32:50 am »
Can't you just do this?

Code: [Select]
DrawText(1,'I am not
getting...',98,$123321,0.12,18,355);
I saw it in some script.

It does look quite messy though...
that's just one command split into two lines...

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: how to use BR for new line
« Reply #7 on: July 29, 2008, 04:35:48 am »
Maybe it has something to do with that funny P symbol that is hidden by text editors?
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs