[HELP]Main and OnGameModeExit - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Main and OnGameModeExit (
/showthread.php?tid=272340)
[HELP]Main and OnGameModeExit -
TheBluec0de - 28.07.2011
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;
}
AW: [HELP]Main and OnGameModeExit -
Nero_3D - 28.07.2011
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
Re: [HELP]Main and OnGameModeExit -
TheBluec0de - 28.07.2011
Thank you. I added the function you wrote to me and now all is well thanks again.