mask error help
#1

Hello i got this error's i dont know what to do help me please

Код:
D:\VLRP\gamemodes\VLRP.pwn(133) : error 017: undefined symbol "pMask"
D:\VLRP\gamemodes\VLRP.pwn(166) : error 017: undefined symbol "pMask"
D:\VLRP\gamemodes\VLRP.pwn(169) : error 017: undefined symbol "pMask"
D:\VLRP\gamemodes\VLRP.pwn(170) : error 017: undefined symbol "pMaskOn"
D:\VLRP\gamemodes\VLRP.pwn(196) : error 017: undefined symbol "pMaskOn"
D:\VLRP\gamemodes\VLRP.pwn(197) : error 017: undefined symbol "pMask"
D:\VLRP\gamemodes\VLRP.pwn(217) : error 017: undefined symbol "pMaskOn"
D:\VLRP\gamemodes\VLRP.pwn(219) : error 017: undefined symbol "pMaskOn"
D:\VLRP\gamemodes\VLRP.pwn(240) : error 017: undefined symbol "pMaskOn"
D:\VLRP\gamemodes\VLRP.pwn(254) : error 017: undefined symbol "pMask"
D:\VLRP\gamemodes\VLRP.pwn(255) : error 017: undefined symbol "pMaskOn"
D:\VLRP\gamemodes\VLRP.pwn(264) : error 017: undefined symbol "pMaskOn"
D:\VLRP\gamemodes\VLRP.pwn(269) : error 017: undefined symbol "pMask"
D:\VLRP\gamemodes\VLRP.pwn(270) : error 017: undefined symbol "pMaskOn"
D:\VLRP\gamemodes\VLRP.pwn(279) : error 017: undefined symbol "pMaskOn"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply
#2

You forgot define it
Reply
#3

Код:
enum ENUM_PLAYER
{
	Text3D:pMaskLabel,
	pMaskTime, // waiting time
	pMaskID, // the maskID
	pMaskOn, // determines if the mask is on or not
	pMask // if a player purchases a mask
};
new PlayerInfo[MAX_PLAYERS][ENUM_PLAYER];
Код:
stock pName(playerid)
{
	new name[24];
	
	if(PlayerInfo[playerid][pMaskOn])
	    format(name, sizeof(name), "Stranger_%d", PlayerInfo[playerid][pMaskID]);
	else
		GetPlayerName(playerid, name, sizeof(name));
		
	return name;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)