Errors :S
#1

pawn Код:
(672) : error 017: undefined symbol "Player"
(672) : warning 215: expression has no effect
(672) : error 001: expected token: ";", but found "]"
(672) : error 029: invalid expression, assumed zero
(672) : fatal error 107: too many error messages on one line
And here is the script lines:

pawn Код:
}
                case 4:
                {
                    if( Player[playerid][Checkpoint] >= 1) //Error line here
                    {
                        Player[playerid][Checkpoint] = 0;
                        DisablePlayerCheckpoint( playerid );
                        SendClientMessage(playerid, YELLOW, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" );
                        SendClientMessage(playerid, WHITE, "Checkpoint clear!" );
                        SendClientMessage(playerid, YELLOW, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" );
                    }
                    else
                    {
                        SendClientMessage(playerid, YELLOW, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" );
                        SendClientMessage(playerid, WHITE, "Error: Cannot clear checkpoint if there isn't one!" );
                        SendClientMessage(playerid, YELLOW, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" );
                    }
                }
            }
        }
    }
    return 1;
}
Thanks for any help!
Reply
#2

It isn't PlayerInfo?
Reply
#3

Код:
Player[playerid][Checkpoint] = 0;
Is where your problem is.
Reply
#4

pawn Код:
if( PlayerInfo[playerid][Checkpoint] >= 1)
Shouldn't be like that?
Reply
#5

Ok, first off thanks for the response. Any ideas on how to fix this?


Quote:
Originally Posted by Marricio
Посмотреть сообщение
pawn Код:
if( PlayerInfo[playerid][Checkpoint] >= 1)
Shouldn't be like that?
I get the same errors/warnings
Reply
#6

Have you got:

Код:
Player[MAX_PLAYERS]
Or:

Код:
PlayerInfo[MAX_PLAYERS]
or something like that.

Near the top of your script ?
Reply
#7

pawn Код:
#define Player[MAX_PLAYERS]
?
Reply
#8

pawn Код:
new Player[MAX_PLAYERS][pInfo]; // Switch the pInfo to your enum name..
example..
pawn Код:
enum pInfo
{
    pScore,
    pMoney,
    pAdmin
}
new Player[MAX_PLAYERS][pInfo];
Try?
Reply
#9

Quote:
Originally Posted by cloudysky
Посмотреть сообщение
pawn Код:
#define Player[MAX_PLAYERS]
?
Try:

Код:
new Player[MAX_PLAYERS];
Under your defines, delete that define you have.
Reply
#10

Thanks to all comments. Stigg your a god and i now worship you.

Nah but thanks a bunch :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)