SA-MP Forums Archive
How to make pawn ignore the " character in a string - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to make pawn ignore the " character in a string (/showthread.php?tid=656142)



How to make pawn ignore the " character in a string - Vennox - 08.07.2018

I want to use " in a string that will be visible to players, for example:
Код:
format(string, sizeof(string), "If you don't see the email, check the "spam" folder.");
how to i make pawn ignore the " character? i knew it was something like /" , but i doesn't work.


Re: How to make pawn ignore the " character in a string - Florin48 - 08.07.2018

i use this [ ' ]

format(string, sizeof(string), "If you don't see the email, check the ''spam'' folder.");

press twice and go, the message in the game looks the same


Re: How to make pawn ignore the " character in a string - Dayrion - 08.07.2018

Quote:
Originally Posted by Florin48
Посмотреть сообщение
i use this [ ' ]

format(string, sizeof(string), "If you don't see the email, check the ''spam'' folder.");

press twice and go, the message in the game looks the same
But it's not the same. As ****** said, he just needs to use \ before the ".


Re: How to make pawn ignore the " character in a string - Florin48 - 09.07.2018

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
But it's not the same. As ****** said, he just needs to use \ before the ".
that is a character that resembles the quotes, press it twice, and the message sent to the player looks the same as the quotes.


Re: How to make pawn ignore the " character in a string - AzaMx - 09.07.2018

PHP код:
format(stringsizeof(string), "If you don't see the email, check the \"spam\" folder.");