04.03.2011, 21:10
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
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;
}