Author Topic: ; appended to the end of my text string.  (Read 525 times)

Legacy_AmbrosiaPW

  • Jr. Member
  • **
  • Posts: 70
  • Karma: +0/-0
; appended to the end of my text string.
« on: April 26, 2011, 03:13:43 am »


               Hello,


I've got a conversation going and when it gets to the point of describing the quest, I grab information from the campaign db. I save it all in a string and then use a custom token to have it show in the conversation window.
When it does, it has a ; at the end of it. I don't know how it got there.

   string sQuest = "Then would you mind taking this Parcel to "+sQtxt+" Come back to me when you are finished and I will pay you for your time.";

SetCustomToken(60,sQuest);

The text all shows correctly, but it looks like...

 
Then would you mind taking this Parcel to Aman Loser's house downtown? Come back to me when you are finished and I will pay you for your time.; 

Thanks for your help!
               
               

               


                     Modifié par AmbrosiaPW, 26 avril 2011 - 02:14 .
                     
                  


            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
; appended to the end of my text string.
« Reply #1 on: April 26, 2011, 03:39:05 am »


               Double check your text in your conversation.   Make sure it is not

< CUSTOM60>;
               
               

               
            

Legacy_Xovian

  • Full Member
  • ***
  • Posts: 158
  • Karma: +0/-0
; appended to the end of my text string.
« Reply #2 on: April 26, 2011, 03:39:18 am »


               My only guess would be that you have the ; inside the quotations.
It shouldn't be showing up if it is outside of them.
Double check to make sure the " -------" + string + "--------" ;
is in the above format, a change in the quote anywhere will cause it not to appear correctly, although honestly it shouldn't compile either if it is in error.

Not trying to sound insulting to your intelligence, but you'd be surprised somethings just show up and eventually you re-write em, and they work fine. Has happened to me before with text strings.

If that's not the case try putting a space or two between the end of the quote and the ; to end the string statement. Not sure of what else to suggest.
               
               

               
            

Legacy_AmbrosiaPW

  • Jr. Member
  • **
  • Posts: 70
  • Karma: +0/-0
; appended to the end of my text string.
« Reply #3 on: April 26, 2011, 06:47:11 am »


               

Lightfoot8 wrote...

Double check your text in your conversation.   Make sure it is not

< CUSTOM60>;


hehe you seem to have some experience with this. Thanks!':wizard:'