Help me error compiling
#1

The gamemode is bondowocopz CCNR and i added a include name cnr_xmas.inc
The following errors were responded..
pawn Код:
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++)
Reply
#2

Here :
Код:
	if(Player[playerid][loggedIn])	
	{
		if(Player[playerid][playerLevel] >= 6)
		{
Reply
#3

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 Код:
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);

                }
            }
Reply
#4

Quote:
Originally Posted by ManGoe
Посмотреть сообщение
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 Код:
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);

                }
            }
Make sure you already included that .inc after player.inc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)