Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-29-2006, 09:14 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Padding characters in format()

It seems that format() has stopped reading the padding characters properly. Normally, something like this:
NPC Code:
format("okay, the date is %02d:%02d",this.hours,this.minutes);


would have an output along the lines of:
okay, the date is 12:02

Now, it outputs:
okay, the date is 12: 2

I noticed this in a server npc that outputs the date to RC, I would test for weapon and level npc outputs, but I don't have the Graal client installed here.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #2  
Old 09-29-2006, 10:06 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Weird...
(this.minutes.length() != 2? "0" @ this.minutes: this.minutes)?
Use that?
__________________
Reply With Quote
  #3  
Old 09-30-2006, 01:58 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
I will need to check that. The format options are not supporting everything from printf, it is mainly coverting everything required for the mudlib, but more options can be added.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.