C:\CCNR\pawno\include\cnr/cnr_xmas.inc(53) : error 017: undefined symbol "playerData"
C:\CCNR\pawno\include\cnr/cnr_xmas.inc(53) : warning 215: expression has no effect
C:\CCNR\pawno\include\cnr/cnr_xmas.inc(53) : error 001: expected token: ";", but found "]"
C:\CCNR\pawno\include\cnr/cnr_xmas.inc(53) : error 029: invalid expression, assumed zero
C:\CCNR\pawno\include\cnr/cnr_xmas.inc(53) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
And the code on line 53 is..
COMMAND:startxmas(playerid, params[])
{
if(playerData[playerid][playerLoggedIn]) //This line is giving error..
{
if(playerData[playerid][playerLevel] >= 6)
{
SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SERVER] {FFFFFF}The Christmas theme has been enabled.");
for(new p; p < MAX_PLAYERS; p++)
if(Player[playerid][loggedIn]) { if(Player[playerid][playerLevel] >= 6) {
COMMAND:startxmas(playerid, params[])
{
if(Player[playerid][loggedIn]) //LINE 53......
{
if(Player[playerid][playerLevel] >= 6) // LINE 55......
{
SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SERVER] {FFFFFF}The Christmas theme has been enabled.");
for(new p; p < MAX_PLAYERS; p++)
{
if(playerData[p][playerLoggedIn])//Line 61/.....
{
TextDrawShowForPlayer(p, xmasDay);
}
}
C:\CCNR\pawno\include\cnr/cnr_xmas.inc(53) : error 017: undefined symbol "Player"
C:\CCNR\pawno\include\cnr/cnr_xmas.inc(55) : error 017: undefined symbol "Player" C:\CCNR\pawno\include\cnr/cnr_xmas.inc(61) : error 017: undefined symbol "playerData" C:\CCNR\pawno\include\cnr/cnr_xmas.inc(61) : warning 215: expression has no effect C:\CCNR\pawno\include\cnr/cnr_xmas.inc(61) : error 001: expected token: ";", but found "]" C:\CCNR\pawno\include\cnr/cnr_xmas.inc(61) : error 029: invalid expression, assumed zero C:\CCNR\pawno\include\cnr/cnr_xmas.inc(61) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors. pawn Код:
|