Errors in Pawno
#1

Quote:

D:\Server\gamemodes\s.pwn(82) : error 017: undefined symbol "PlayerFile"
D:\Server\gamemodes\s.pwn(94) : error 017: undefined symbol "COLOUR_ORANGE"
D:\Server\gamemodes\s.pwn(103) : error 017: undefined symbol "COLOUR_ORANGE"
D:\Server\gamemodes\s.pwn(104) : error 017: undefined symbol "COLOUR_ORANGE"
D:\Server\gamemodes\s.pwn(112) : error 017: undefined symbol "PlayerFile"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

help plz how to fix it
Reply
#2

You didn't define these symbols.

pawn Код:
//Ex:
#define COLOR blabla
Can't do anything without code. Show the code of those lines.
Reply
#3

i defined it already but problem is playerfile
Reply
#4

Quote:
Originally Posted by RuiGy
Посмотреть сообщение
Show the code of those lines.
Probably it is a undefined variable.
Reply
#5

Show the line of the playerfile errors etc. Also remember to:
pawn Код:
#define COLOUR_ORANGE 0xFF5900FF
at the top of your script.
Reply
#6

colour problem has fixed but undefined symbol "Playerfile"
PROBLEM
Quote:

D:\Server\gamemodes\s.pwn(83) : error 017: undefined symbol "PlayerFile"
D:\Server\gamemodes\s.pwn(113) : error 017: undefined symbol "PlayerFile"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Error on Line
83
Quote:

format(file,sizeof(file),PlayerFile,Name);

And 113 Line
Quote:

format(file,sizeof(file),PlayerFile,gPlayerInfo[playerid][PLAYER_NAME]);

I have defined already
Quote:

#define PlayerFile "AdminScript/Users/%s.ini"

Help plz
Reply
#7

is PlayerFile defined above these lines?
Reply
#8

yea this is on top script
Reply
#9

Top of your script under <a_samp>:
pawn Код:
enum pInfo
{
    pAdmin,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Line 83:
pawn Код:
format(file,sizeof(file),pInfo,Name);
Line 113:
pawn Код:
format(file,sizeof(file),PlayerFile,pInfo[playerid][PLAYER_NAME]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)