Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Reply
 
Thread Tools
Old 07-18-2002, 08:38 PM   #1
Enziet
New Member
 
Join Date: Jun 2002
Posts: 10
Enziet is on a distinguished road
Red face

Ok, first, a little info:

Driver: Windows compiled LPMud 3.2.7
Lib: Uber-hacked Amylarr, also compiled for windows

Problem:
Sprintf() will not actually print anything. It just gives a blank line where the output should be printed. printf() works fine, but it doesnt do what sprintf() does...

Anyone have any ideas?
Enziet is offline   Reply With Quote
Old 07-18-2002, 08:50 PM   #2
Loriel
Member
 
Join Date: May 2002
Posts: 49
Loriel is on a distinguished road
Amylaar is a driver, not a mudlib.

Your mudlib should not be 'compiled for windows', only the driver is compiled.

It's therefore a little confusing to try to sort out your problems.

sprintf() shouldn't actually print anything - it should produce a formatted string.

eg string mystring = sprintf("The number is %d",10);

If that doesn't clear up the problem, the next step is probably to check whether you have a sefun (simulated external function) for sprintf() within the mudlib, and work out what is going wrong in that.

It seems unlikely that the problem would lie in the driver.
Loriel is offline   Reply With Quote
Reply


Thread Tools


Problem with sprintf - Similar Threads
Thread Thread Starter Forum Replies Last Post
A Java Problem Almondine War MUD Coding 6 10-22-2004 12:17 AM
obj_to_room problem Samson MUD Coding 4 05-11-2004 12:27 AM
Same problem Nostrum Newbie Help 3 09-19-2002 09:52 AM
heartbeat problem with ldmud f451 MUD Coding 8 06-06-2002 06:06 AM
Code Problem Keljorian MUD Coding 1 06-02-2002 12:11 AM

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

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

All times are GMT -4. The time now is 06:28 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2014