Author Topic: DrawText() sizing  (Read 1385 times)

0 Members and 1 Guest are viewing this topic.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
DrawText() sizing
« on: April 30, 2007, 05:23:42 pm »
Quote
procedure DrawText(ID: Byte; Text: string; Delay: Integer; Colour: Longint; Scale: Single;X,Y: Integer)

is it possible to have it scaled less than 1 sense with the scale of 1, its really large; and with the scale as a 1/__, it just doesn't draw anything; and with a decimal, it crashes :(
do singles not support decimals or something? is it possible to change this in the future?
i really was looking forward to this but never realized that the scale of 1 was that large and that i cant use decimals. :'(

EDIT: i can use decimals, but its only between 0 and 1 that it isn't allowed???? o.O?
Why in the world would there be a thing so you can use basically any number, including fractional numbers, except when its between 0 and 1.... Thats just crazy :P
« Last Edit: May 01, 2007, 03:33:23 pm by DorkeyDear »

Offline DeMo

  • Soldier
  • **
  • Posts: 127
  • Stay Metal! \m/
    • Encoder 2002
Re: DrawText() sizing
« Reply #1 on: April 30, 2007, 06:46:04 pm »
I noticed this too.
The message I wrote was too large to show with scaling set to 1, so I tried 0.7 and it didn't work.

<@Evil-Ville> Expect a picture of Chakra` holding his fleshlight soon!

Offline iftach

  • Major(1)
  • Posts: 16
Re: DrawText() sizing
« Reply #2 on: May 04, 2007, 01:43:55 pm »
do something like 0.9-0.8, but when its small it gets grainy...

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: DrawText() sizing
« Reply #3 on: June 04, 2007, 02:59:40 pm »
Seems to crash when i type in a decimal, but when I type a fraction, it doesn't... but it also doesn't draw any text if the fraction is between 0 and 1.
I heard to fix scaling in 2.6.1 by subtracting .8, but..... thats a decimal, 1 is WAYY to large, and i try both .2 and 1/5, then crash, or nothing shows.

(Windows server)

Offline CAATINGA

  • Major(1)
  • Posts: 5
  • www.soldat.com.br
    • SOLDAT BRASIL
Re: DrawText() sizing
« Reply #4 on: June 08, 2007, 07:37:26 am »
Seems to crash when i type in a decimal, but when I type a fraction, it doesn't... but it also doesn't draw any text if the fraction is between 0 and 1.
I heard to fix scaling in 2.6.1 by subtracting .8, but..... thats a decimal, 1 is WAYY to large, and i try both .2 and 1/5, then crash, or nothing shows.

(Windows server)

Have you tried it with the new Dedicated Server 2.6.1 ?
I've started scripting these days, and I never had problems with DrawText() and decimals on the variable Scale... I used numbers only between 0 and 1 (0.1 , 0.2 ... , even 0.415 - I think it supports 6 decimal algarisms) and it just works fine.

UN| CAATINGA |UN
Bando de gringo quica all f12

Offline spkka

  • Camper
  • ***
  • Posts: 469
Re: DrawText() sizing
« Reply #5 on: June 08, 2007, 09:03:58 am »
mine was 1.3 before now i made them 0.05 and wors great here.. Maybe a bit small tho
using 2.6.1 on windows

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: DrawText() sizing
« Reply #6 on: June 08, 2007, 10:54:36 am »
I didn't realize I needed a 0.##...  I got it. :)