Error 010 and 001 (compiling errors)
#1

These are the errors
pawn Код:
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.
and here are the lines
pawn Код:
new randomMessages[][] =
{
    ""chat""COL_LGREEN" Welcome to "Name" "Version" Created by "Creator"", //line 159
pawn Код:
}; //line 164
pawn Код:
main()
{
    print("\n----------------------------------");
    print(""CName" - "Name" "Version" Loaded"); //line 171
    print("----------------------------------\n");
}
Reply
#2

EDIT nevermind wait how you define ?

if you are using

pawn Код:
#define Cname MyGamemodeName
use

pawn Код:
#define Cname "MyGamemodeName"
Reply
#3

To do that, you should format the string. And the print thing,

pawn Код:
printf( "%s - %s %s Loaded", CName, Name, Version ); // if version is in numbers use %d instead of %s
make you define all of them: CName, Name and Version at top
Reply
#4

You don't solve the frist code... with my solution you will solve all problems
Reply
#5

Quote:
Originally Posted by FalconX
Посмотреть сообщение
To do that, you should format the string. And the print thing,

pawn Код:
print( "%s - %s %s Loaded", CName, Name, Version ); // if version is in numbers use %d instead of %s
You should use printf for that.
Reply
#6

Quote:
Originally Posted by SilverKiller
Посмотреть сообщение
You should use printf for that.
yes it's printf; it was a typo lol.
Reply
#7

@Jumbo: Neither one works, but thank you

@FalconX: Also doesn't work, but thank you
Reply
#8

So show where you define CName Name and Version i just tried and compiles fine for me
Reply
#9

These errors appear when I add the second code you posted Ijumbo
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.
same lines
Reply
#10

You don't have to add you have to replace! and i ask "So show where you define CName Name"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)