Aller au contenu

Photo

; appended to the end of my text string.


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
AmbrosiaPW

AmbrosiaPW
  • Members
  • 35 messages
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 .


#2
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
Double check your text in your conversation. Make sure it is not

< CUSTOM60>;

#3
Xovian

Xovian
  • Members
  • 87 messages
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.

#4
AmbrosiaPW

AmbrosiaPW
  • Members
  • 35 messages

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: