Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
undergod
Wanderer


Joined: 27 Jun 2001
Posts: 82

PostPosted: Wed Oct 16, 2002 6:12 am   

Commas in triggers with %d?
 
I am using a trigger that captures a number and puts it into a variable. It does some other stuff, but that's not important. The important thing is, this number contains commas. Now, if I get a number like 2,143, the variable only reads '2'.

Is there an easy way to get around this?
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Wed Oct 16, 2002 6:43 am   
 
Use %n instead of %d. Not only will it read numbers with commas, it'll read negative numbers as well.

Troubadour
(Win 98, Pentium III, 550 MHz)
Reply with quote
undergod
Wanderer


Joined: 27 Jun 2001
Posts: 82

PostPosted: Wed Oct 16, 2002 6:45 am   
 
Wow, that was easy. Thanks, works like a charm.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
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

© 2009 Zugg Software. Hosted by Wolfpaw.net