[HELP]Main and OnGameModeExit
#1

how do I fix these errors in the main OnGameModeExit and function. my GameMode?

Код:
C:\Users\Pavilion\Desktop\ILV Server\pawno\ILVGM.pwn(45) : error 027: invalid character constant
C:\Users\Pavilion\Desktop\ILV Server\pawno\ILVGM.pwn(45) : error 027: invalid character constant
C:\Users\Pavilion\Desktop\ILV Server\pawno\ILVGM.pwn(46) : error 027: invalid character constant
C:\Users\Pavilion\Desktop\ILV Server\pawno\ILVGM.pwn(46) : error 027: invalid character constant
C:\Users\Pavilion\Desktop\ILV Server\pawno\ILVGM.pwn(46) : error 017: undefined symbol "__"
C:\Users\Pavilion\Desktop\ILV Server\pawno\ILVGM.pwn(46) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Код:
main()
{
	format(stringa,sizeof(stringa),"      Versione Corrente: %s",VERSIONE);
	print("\n_____________________________________");
	print("       .___  __         .__  .__                .____");
	print("       |   |/  |______  |  | |__|____    ____   |    |   _____    ______");
	print("       |   \   __\__  \ |  | |  \__  \  /    \  |    |   \__  \  /  ___/");
	print("       |   ||  |  / __ \|  |_|  |/ __ \|   |  \ |    |___ / __ \_\___ \");
	print("       |___||__| (____  /____/__(____  /___|  / |_______ (____  /____  >");
	print("                      \/             \/     \/          \/    \/     \/");
	print("            ____   ____             __");
	print("            \   \ /   /____   _____/  |_ __ ______________    ______");
	print("             \   Y   // __ \ /    \   __\  |  \_  __ \__  \  /  ___/");
	print("              \     /\  ___/|   |  \  | |  |  /|  | \// __ \_\___ \");
	print("               \___/  \___  >___|  /__| |____/ |__|  (____  /____  >");
	print("                          \/     \/                       \/     \/");
	print(stringa);
	print("      Start GameMode");
	print("_____________________________________\n");
}
Код:
public OnGameModeExit()
{
	format(stringa,sizeof(stringa),"      Versione Corrente: %s",VERSIONE);
	print("\n_____________________________________");
	print("       .___  __         .__  .__                .____");
	print("       |   |/  |______  |  | |__|____    ____   |    |   _____    ______");
	print("       |   \   __\__  \ |  | |  \__  \  /    \  |    |   \__  \  /  ___/");
	print("       |   ||  |  / __ \|  |_|  |/ __ \|   |  \ |    |___ / __ \_\___ \");
	print("       |___||__| (____  /____/__(____  /___|  / |_______ (____  /____  >");
	print("                      \/             \/     \/          \/    \/     \/");
	print("            ____   ____             __");
	print("            \   \ /   /____   _____/  |_ __ ______________    ______");
	print("             \   Y   // __ \ /    \   __\  |  \_  __ \__  \  /  ___/");
	print("              \     /\  ___/|   |  \  | |  |  /|  | \// __ \_\___ \");
	print("               \___/  \___  >___|  /__| |____/ |__|  (____  /____  >");
	print("                          \/     \/                       \/     \/");
	print(stringa);
	print("      Stop GameMode");
	print("_____________________________________\n");
	return 1;
}
Reply
#2

you used the escape character '\' with an unknown constant behind it

That should fix it
pawn Код:
//
    print ( "\n_____________________________________");
    print (\"       .___  __         .__  .__                .____");
    print (\"       |   |/  |______  |  | |__|____    ____   |    |   _____    ______");
    print (\"       |   \  __\__  \ |  | |  \__  \ /    \ |    |   \__  \ /  ___/");
    print (\"       |   ||  |  / __ \|  |_|  |/ __ \|   |  \ |    |___ / __ \_\___ \");
    print (\"       |___||__| (____  /____/__(____  /___|  / |_______ (____  /____  >"
);
    print (\"                      \/             \/     \/          \/    \/     \/");
    print (\"            ____   ____             __");
    print (\"            \  \ /   /____   _____/  |_ __ ______________    ______");
    print (\"             \  Y   // __ \ /    \  __\ |  \_  __ \__  \ /  ___/");
    print (\"              \    /\ ___/|   |  \ | |  |  /|  | \// __ \_\___ \");
    print (\"               \___/  \___  >___|  /__| |____/ |__|  (____  /____  >"
);
    print (\"                          \/     \/                       \/     \/");
    printf( "      Versione Corrente: %s", VERSIONE);
    print ( "      Start GameMode");
    print ( "_____________________________________\n");
just do the same in OnGameModeExit
Reply
#3

Thank you. I added the function you wrote to me and now all is well thanks again.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)