Jump to content

[CLEO] get dialog text


Cartofar
 Share

Recommended Posts

Hello, i have some issues with the dialog, specifically get_dialog_text function and get_dialog_caption. I am able to get the current dialog id and even to set current dialog list item. But for the get_dialog_text for some reason it returns null. I am using the code below:

0AC8: 5@ = allocate_memory_size 512
0BD7: samp get_dialog_text 5@
chatmsg "dialog text: %s" 5@

this prints: "dialog text: (null)" but

strlen 5@

returns a, in my opinion, good value.

 

Do you have any ideas?

Edited by Cartofar
Link to comment
Share on other sites

Hello,

 

Try this:

0AC8: 5@ = allocate_memory_size 512
0BD7: samp get_dialog_text 5@
chatmsg "dialog text: %s" -1 5@

 

0C17: 6@ = strlen 5@
chatmsg "String lenght: %d" -1 6@

 

Link to comment
Share on other sites

  • Tupi locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.