Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
String #329428
06/19/10 20:13
06/19/10 20:13
Joined: Jun 2010
Posts: 11
N
Nite Offline OP
Newbie
Nite  Offline OP
Newbie
N

Joined: Jun 2010
Posts: 11
TEXT* BattelOutput1 = //show the dmg for the battel
{
pos_x = 300;
pos_y = 450;
layer = 3;
font = arial_font;
string ("You have hit for ", BattelOutputText1, "points of damage.");
}
the text is shown as:

You have hit for
#
points of damage

i want it to be:

You have hit for # points of damage

any ideas

Re: String [Re: Nite] #329430
06/19/10 20:20
06/19/10 20:20
Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
every string is a new line, that is stated in the manual.

what you need is str_printf.

Code:
TEXT* BattelOutput1 = //show the dmg for the battel
{
pos_x = 300;
pos_y = 450;
layer = 3;
font = arial_font;
string = BattleDamageStr;
}

void print_damage(var damage_var){
 str_printf(BattleDamageStr,"You have hit for %d points of damage",damage_var);
}




3333333333
Re: String [Re: Quad] #329431
06/19/10 20:21
06/19/10 20:21
Joined: Jun 2010
Posts: 11
N
Nite Offline OP
Newbie
Nite  Offline OP
Newbie
N

Joined: Jun 2010
Posts: 11
oh thank you very much


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1