PDA

View Full Version : double quote in format string


nacrotic
06-17-2007, 09:03 AM
i want format this string : "%s" "spk \'%s\'" "cd" "u"

i have try add \ befor specialchar bug same error (\"%s\" \"spk \\\'%s\\\'\" \"cd\" \"u\")

i have try add single quote around specialchar with \ ('\"'%s'\"' '\"'spk '\\''\''%s'\\''\'''\"' '\"'cd'\"' '\"'u'\"')

but continu to dont work

the final commande must be
format(soundToWrite,95," "%s" "spk \'%s\'" "cd" "u" ",g_soundName[g_soundNums],soundPath)

thank for your help

=|[76AD]|= TatsuSaisei
06-17-2007, 02:48 PM
the breakout character in PAWN is ^ by default ...

If you want to use the C version ( \ ) then you have to add


#pragma ctrlchar \

nacrotic
06-17-2007, 03:01 PM
oh ... ok thank

=|[76AD]|= TatsuSaisei
06-17-2007, 04:24 PM
no problem :D