ASCII art in server console.
#1

I tried this ASCII Art Generator, to type some words into my server console, this is the code:

Код:
print("  _____           _           _     _____            _ _ _");
print(" |  __ \         (_)         | |   |  __ \          | (_) |");
print(" | |__) | __ ___  _  ___  ___| |_  | |__) |___  __ _| |_| |_ _   _");
print(" |  ___/ '__/ _ \| |/ _ \/ __| __| |  _  // _ \/ _` | | | __| | | |");
print(" | |   | | | (_) | |  __/ (__| |_  | | \ \  __/ (_| | | | |_| |_| |");
print(" |_|   |_|  \___/| |\___|\___|\__| |_|  \_\___|\__,_|_|_|\__|\__, |");
print("                _/ |                                          __/ |");
print("               |__/                                          |___/");
And this code is giving me 8 errors, all the same:
pawn Код:
error 027: invalid character constant
Made the lines, that are giving errors bold.
Reply
#2

You can't use "\" in strings cause it has other function, use \\ to print the literal \.

pawn Код:
print("  _____           _           _     _____            _ _ _");
print(" |  __ \\         (_)         | |   |  __ \\          | (_) |");
print(" | |__) | __ ___  _  ___  ___| |_  | |__) |___  __ _| |_| |_ _   _");
print(" |  ___/ '__/ _ \\| |/ _ \\/ __| __| |  _  // _ \\/ _` | | | __| | | |");
print(" | |   | | | (_) | |  __/ (__| |_  | | \\ \\  __/ (_| | | | |_| |_| |");
print(" |_|   |_|  \\___/| |\\___|\\___|\\__| |_|  \\_\\___|\\__,_|_|_|\\__|\\__, |");
print("                _/ |                                          __/ |");
print("               |__/                                          |___/");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)