08.10.2013, 10:43
I was making a mask system and I'm getting these errors.
pawn Код:
:mask(playerid, params[])// Fixed/Brand new - Willowfield
{
if(PlayerInfo[playerid][pMask] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(i, playerid, 0);
}
}
PlayerInfo[playerid][pMask] = 1;
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s has put a mask on.", name);
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if(PlayerInfo[playerid][pMask] == 1 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(i, playerid, 1);
}
}
PlayerInfo[playerid][pMask] = 0;
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s has put their mask away.", name);
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}
Код:
Desktop\DSRP1\gamemodes\RZRP.pwn(4904) : warning 203: symbol is never used: "seek" Desktop\DSRP1\gamemodes\RZRP.pwn(4935) : warning 203: symbol is never used: "seek" Desktop\DSRP1\gamemodes\RZRP.pwn(95890) : error 017: undefined symbol "name" Desktop\DSRP1\gamemodes\RZRP.pwn(95890) : error 017: undefined symbol "name" Desktop\DSRP1\gamemodes\RZRP.pwn(95890) : error 029: invalid expression, assumed zero Desktop\DSRP1\gamemodes\RZRP.pwn(95890) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.