Coding

 Reply to this postStart new topic

Poblems with formatted text

LINK/2012
post May 13 2011, 07:47 PM
Post #1


I will kill you

Posts: 126
Joined: 13-May 11



Hi People.

I've got a poblem with the fromatted text opcodes...

Look the following code:
CODE
{$CLEO .cs}
thread 'fff'
wait 0
8@ = 5
0AD1: show_formatted_text_highpriority "Number: %d" time 8000 8@
0A93: end_custom_thread


I'm sure the number should appear, but it no appear...


what's wrong? wacko.gif

and another poblem, now with %s

When I use %s...
CODE
{$CLEO .cs}
thread 'fff'
wait 0
8@v = "5"
0AD1: show_formatted_text_highpriority "Number: %s" time 8000 8@v
0A93: end_custom_thread

...the game crashs

Help confused.gif
Go to the top of the page
 
+Quote Post
Silent
post May 13 2011, 08:17 PM
Post #2


The master of cut retort

Group Icon

Posts: 239
From: Warsaw, PL
Joined: 21-July 10



Set "Case converting" in Sanny options to "As is". It's compiling as %D for you, which isn't "%d".
Go to the top of the page
 
+Quote Post
LINK/2012
post May 13 2011, 08:43 PM
Post #3


I will kill you

Posts: 126
Joined: 13-May 11



Thanks Silent, Now it worked. : thumbsup.gif

This post has been edited by LINK2012: May 13 2011, 08:44 PM
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: