когда ввожу команду пишет вы должны находится в личном автомобиле

PHP код:
CMD:carpass(playeridparams[])
{
    if(
PlayerLogged[playerid] == 0) return true;
    if(
PlayerInfo[playerid][cModel] == 0) return SendClientMessage(playeridCOLOR_GREYYouDoNotHaveAnyCar);
    if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playeridCOLOR_GREYPlayerIsNotInCar);
    if(
GetPlayerVehicleID(playerid) != PlayerInfo[playerid][cCarId]) return SendClientMessage(playeridCOLOR_GREY"Вы должны находиться в вашем личном транспорте!");
    if(
sscanf(params"u"params[0], params[1])) return SendClientMessage(playeridCOLOR_WHITE"• {ffcf00}[ Подсказка ] {ffffff}Введите: /carpass [id игрока] [1/2/3]");
    if(!
IsPlayerConnected(params[0])) return SendClientMessage(playeridCOLOR_GREYTPLAYEROFFLINE);
    if(
PlayerLogged[params[0]] == 0) return SendClientMessage(playeridCOLOR_GREYTPLAYERNLOGGED);
    switch(
params[1])
    {
        case 
1:
        {
            
SendClientMessage(params[0], COLOR_YELLOW,"[==================== ПТС =======================]");
            
SendMes(params[0], COLOR_YELLOW"[ Владелец: {ffffff}%s ]",PlayerInfo[playerid][pSendername]);
            
SendMes(params[0], COLOR_YELLOW"[ Модель: {ffffff}%s ]",VehicleNameS[GetVehicleModel(PlayerInfo[playerid][cCarId][0])-400]);
            
SendMes(params[0], COLOR_YELLOW"[ Гос.Знак: {ffffff}%s ]",PlayerInfo[playerid][cNumber1]);
            if(
PlayerInfo[playerid][cClass][0] == 3SendClientMessage(params[0], COLOR_YELLOW"[ Класс: {ffffff}C ]");
            if(
PlayerInfo[playerid][cClass][0] == 2SendClientMessage(params[0], COLOR_YELLOW"[ Класс: {ffffff}B ]");
            if(
PlayerInfo[playerid][cClass][0] == 1SendClientMessage(params[0], COLOR_YELLOW"[ Класс: {ffffff}A ]");
            if(
PlayerInfo[playerid][cClass][0] == 4SendClientMessage(params[0], COLOR_YELLOW"[ Класс: {ffffff}Нет ]");
            
SendClientMessage(params[0], COLOR_YELLOW,"[================================================]");
            
format(totalstring100"%s показал(а) документы на транспорт %s"PlayerInfo[playerid][pSendername], sendername(params[0]));
            
ProxDetectorNew(playerid30.0COLOR_PURPLEtotalstring);
        }
        case 
2:
        {
            
SendClientMessage(params[0], COLOR_YELLOW,"[==================== ПТС =======================]");
            
SendMes(params[0], COLOR_YELLOW"[ Владелец: {ffffff}%s ]",PlayerInfo[playerid][pSendername]);
            
SendMes(params[0], COLOR_YELLOW"[ Модель: {ffffff}%s ]",VehicleNameS[GetVehicleModel(PlayerInfo[playerid][cCarId][1])-400]);
            
SendMes(params[0], COLOR_YELLOW"[ Гос.Знак: {ffffff}%s ]",PlayerInfo[playerid][cNumber2]);
            if(
PlayerInfo[playerid][cClass][1] == 3SendClientMessage(params[0], COLOR_YELLOW"[ Класс: {ffffff}C ]");
            if(
PlayerInfo[playerid][cClass][1] == 2SendClientMessage(params[0], COLOR_YELLOW"[ Класс: {ffffff}B ]");
            if(
PlayerInfo[playerid][cClass][1] == 1SendClientMessage(params[0], COLOR_YELLOW"[ Класс: {ffffff}A ]");
            if(
PlayerInfo[playerid][cClass][1] == 4SendClientMessage(params[0], COLOR_YELLOW"[ Класс: {ffffff}Нет ]");
            
SendClientMessage(params[0], COLOR_YELLOW,"[================================================]");
            
format(totalstring100"%s показал(а) документы на транспорт %s"PlayerInfo[playerid][pSendername], sendername(params[0]));
            
ProxDetectorNew(playerid30.0COLOR_PURPLEtotalstring);
        }
        case 
3:
        {
            
SendClientMessage(params[0], COLOR_YELLOW,"[==================== ПТС =======================]");
            
SendMes(params[0], COLOR_YELLOW"[ Владелец: {ffffff}%s ]",PlayerInfo[playerid][pSendername]);
            
SendMes(params[0], COLOR_YELLOW"[ Модель: {ffffff}%s ]",VehicleNameS[GetVehicleModel(PlayerInfo[playerid][cCarId][2])-400]);
            
SendMes(params[0], COLOR_YELLOW"[ Гос.Знак: {ffffff}%s ]",PlayerInfo[playerid][cNumber3]);
            if(
PlayerInfo[playerid][cClass][2] == 3SendClientMessage(params[0], COLOR_YELLOW"[ Класс: {ffffff}C ]");
            if(
PlayerInfo[playerid][cClass][2] == 2SendClientMessage(params[0], COLOR_YELLOW"[ Класс: {ffffff}B ]");
            if(
PlayerInfo[playerid][cClass][2] == 1SendClientMessage(params[0], COLOR_YELLOW"[ Класс: {ffffff}A ]");
            if(
PlayerInfo[playerid][cClass][2] == 4SendClientMessage(params[0], COLOR_YELLOW"[ Класс: {ffffff}Нет ]");
            
SendClientMessage(params[0], COLOR_YELLOW,"[================================================]");
            
format(totalstring100"%s показал(а) документы на транспорт %s"PlayerInfo[playerid][pSendername], sendername(params[0]));
            
ProxDetectorNew(playerid30.0COLOR_PURPLEtotalstring);
        }
    }
    return 
true;