Quote:
Originally Posted by MP2
Is it possible to put comments inside strings? I want to make a list of models in a string like so:
pawn Код:
new gVehModel_Motorbike[] = { 462, // Faggio 581, // BF-400 461, // PCJ-600 521, // FCR-900 463, // Freeway 586 // Wayfarer
Obviously that's not a string but an array, I'd like to make it a string without losing the coments so I know which vehicle is which.
Is there a way?
|
Strings are arrays.
pawn Код:
new string[] = "Hello";
new string2[] = {'H', 'E', 'L', 'L', 'O', '\0'};
^Same thing btw.
Erm, to answer your question. If you mean something like this:
pawn Код:
new string[] = "Hello //Comment"
Nope, when wrapped EVERYTHING is part of the string, with the exclusion of character sequences such as the null terminator and newline but you get what i mean.