ASCII art in server console. - 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: ASCII art in server console. (
/showthread.php?tid=358830)
ASCII art in server console. -
Dan. - 11.07.2012
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.
Re: ASCII art in server console. -
Larceny - 11.07.2012
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(" |__/ |___/");