|
|||||||
This is a discussion on "Problem with sprintf" in the Top Mud Sites MUD Coding forum : 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?... |
|
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our MUD community today! If you have any problems with the registration process or your account login, please contact us. If you are a registered member of the old TMS forums, please click here
|
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
New Member
Join Date: Jun 2002
Posts: 10
![]() |
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? |
|
|
|
|
|
#2 |
|
Member
Join Date: May 2002
Posts: 49
![]() |
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. |
|
|
|
![]() |
| Thread Tools | |
Problem with sprintf - Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A Java Problem | Almondine War | MUD Coding | 6 | 10-21-2004 11:17 PM |
| obj_to_room problem | Samson | MUD Coding | 4 | 05-10-2004 11:27 PM |
| Same problem | Nostrum | Newbie Help | 3 | 09-19-2002 08:52 AM |
| heartbeat problem with ldmud | f451 | MUD Coding | 8 | 06-06-2002 05:06 AM |
| Code Problem | Keljorian | MUD Coding | 1 | 06-01-2002 11:11 PM |
|
|