D:\ZombieMod\gamemodes\zm.pwn(159) : error 001: expected token: "-string end-", but found "-identifier-"
D:\Klodaaa\gamemodes\zm.pwn(164) : error 010: invalid function or declaration
D:\Klodaaa\gamemodes\zm.pwn(171) : error 001: expected token: "-string end-", but found "-identifier-"
D:\Klodaaa\gamemodes\zm.pwn(171) : error 017: undefined symbol "CName"
D:\Klodaaa\gamemodes\zm.pwn(171) : warning 215: expression has no effect
D:\Klodaaa\gamemodes\zm.pwn(171) : error 001: expected token: ";", but found "-identifier-"
D:\Klodaaa\gamemodes\zm.pwn(171) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
new randomMessages[][] =
{
""chat""COL_LGREEN" Welcome to "Name" "Version" Created by "Creator"", //line 159
}; //line 164
main()
{
print("\n----------------------------------");
print(""CName" - "Name" "Version" Loaded"); //line 171
print("----------------------------------\n");
}
#define Cname MyGamemodeName
#define Cname "MyGamemodeName"
printf( "%s - %s %s Loaded", CName, Name, Version ); // if version is in numbers use %d instead of %s
To do that, you should format the string. And the print thing,
pawn Код:
|
D:\ZombieMod\gamemodes\zm.pwn(162) : error 001: expected token: "-string end-", but found "-identifier-"
D:\ZombieMod\gamemodes\zm.pwn(167) : error 010: invalid function or declaration
D:\ZombieMod\gamemodes\zm.pwn(174) : error 001: expected token: "-string end-", but found "-identifier-"
D:\ZombieMod\gamemodes\zm.pwn(174) : error 017: undefined symbol "CName"
D:\ZombieMod\gamemodes\zm.pwn(174) : warning 215: expression has no effect
D:\ZombieMod\gamemodes\zm.pwn(174) : error 001: expected token: ";", but found "-identifier-"
D:\ZombieMod\gamemodes\zm.pwn(174) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.