Ошибка warning 213: tag mismatch
Не могу понять в чём ошибка
PHP код:
CMD:grab(playerid, params[])
{
if(Logged[playerid] == false)
return SendClientMessage(playerid, COLOR_GREY, PlayerIsNotLogged);
if(mafia(playerid))
return SendClientMessage(playerid, COLOR_RED, "Вы не состоите в банде/мафии.");
if(PlayerInfo[playerid][pRank] < 3)
return SendClientMessage(playerid, COLOR_GREY, "Эта команда доступна с 3 ранга");
if(sscanf(params, "u", params[0]))
return SendClientMessage(playerid, COLOR_WHITE, "Использование: /grab [ID/Часть ника]");
#define id params[0]
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if(!PlayerToPoint(id, 6.0, x, y, z))
return SendClientMessage(playerid, COLOR_GREY, "Игрок слишком далеко от вас");
if(GetPVarInt(id, "Tie") != 1)
return SendClientMessage(playerid, COLOR_GREY, "Игрок должен быть связан");
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
return SendClientMessage(playerid, COLOR_GREY, "Вы находитесь в машине");
if(GetPlayerState(id) != PLAYER_STATE_ONFOOT)
return SendClientMessage(playerid, COLOR_GREY, "Игрок находится в машине");
SetPlayerPos(id, x+0.5, y+0.5, z+0.2);
SendClientMessage(id, COLOR_WHITE, "Вас потащили за собой");
#undef id
return 1;
}
PHP код:
warning 213: tag mismatch
в этой строке
PHP код:
if(!PlayerToPoint(id, 6.0, x, y, z))
и для чего это
#define id params[0]
#undef id