TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

weird behaviour of echo

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
bafman



Joined: 15 Jan 2009
Posts: 4

PostPosted: Thu Jan 15, 2009 8:22 am    Post subject: weird behaviour of echo Reply with quote

Hello,

I find echo behaving strangely. Please see this easy example:

Code:

#var a {Hello World}
#OK. VARIABLE {a} HAS BEEN SET TO {Hello World}.
#echo {string: %s} {$a}
string: Hello
#showme $a
Hello World


Am I doing something wrong? I would expect to see whole string

Thanks
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Thu Jan 15, 2009 8:51 am    Post subject: Reply with quote

#help echo is a bit unclear on that, you need to use the following:

#echo {string: %s} {{$a}}

And with multiple arguments:

#echo {string: %s %s} {{$a} {$a}}
Back to top
View user's profile Send private message Send e-mail
bafman



Joined: 15 Jan 2009
Posts: 4

PostPosted: Thu Jan 15, 2009 9:49 am    Post subject: Reply with quote

thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group