Vehicle Register?
#1

So guys, i am really confused, why this is not working

pawn Код:
if(dialogid == 550)
    {
        if(response)
        {
            if(listitem == 0) // Vehicle Slot 1
            {
                SendClientMessage(playerid, COLOR_WHITE, "Vehicle slot 1");
                ShowDialog(playerid, 551);
            }
            if(listitem == 1) // Vehicle Slot 2
            {
                SendClientMessage(playerid, COLOR_WHITE, "Vehicle slot 2");
                ShowDialog(playerid, 552);
            }
            if(listitem == 2) // Vehicle Slot 3
            {
                SendClientMessage(playerid, COLOR_WHITE, "Vehicle slot 3");
                ShowDialog(playerid, 553);
            }
        }
    }  
    if(dialogid == 551)
    {
        if(!response)
        {
            new Float:carpos_x,Float:carpos_y,Float:carpos_z;
            SetVehicleNumberPlate(PlayerInfo[playerid][pVeh], inputtext);
            GetVehiclePos(PlayerInfo[playerid][pVeh],carpos_x,carpos_y,carpos_z);
            SetVehicleToRespawn(PlayerInfo[playerid][pVeh]);
            SetVehiclePos(PlayerInfo[playerid][pVeh],carpos_x,carpos_y,carpos_z);
            PlayerInfo[playerid][pVehPlate] = inputtext[32];
            SendClientMessage(playerid, COLOR_GREY, "You've changed your vehicle plate of Vehicle Slot 1");
        }
        else SendClientMessage(playerid, COLOR_GREY, "You've canceled the Registration of your Vehicle Name Plate.");
        return 1;
    }
    if(dialogid == 552)
    {
        if(!response)
        {
            new Float:carpos_x,Float:carpos_y,Float:carpos_z;
            SetVehicleNumberPlate(PlayerInfo[playerid][pVVeh], inputtext);
            GetVehiclePos(PlayerInfo[playerid][pVVeh],carpos_x,carpos_y,carpos_z);
            SetVehicleToRespawn(PlayerInfo[playerid][pVVeh]);
            SetVehiclePos(PlayerInfo[playerid][pVVeh],carpos_x,carpos_y,carpos_z);
            PlayerInfo[playerid][pVVehPlate] = inputtext[32];
            SendClientMessage(playerid, COLOR_GREY, "You've changed your vehicle plate of Vehicle Slot 2");
        }
        else SendClientMessage(playerid, COLOR_GREY, "You've canceled the Registration of your Vehicle Name Plate.");
        return 1;
    }
    if(dialogid == 553)
    {
        if(!response)
        {
            new Float:carpos_x,Float:carpos_y,Float:carpos_z;
            SetVehicleNumberPlate(PlayerInfo[playerid][pBVeh], inputtext);
            GetVehiclePos(PlayerInfo[playerid][pBVeh],carpos_x,carpos_y,carpos_z);
            SetVehicleToRespawn(PlayerInfo[playerid][pBVeh]);
            SetVehiclePos(PlayerInfo[playerid][pBVeh],carpos_x,carpos_y,carpos_z);
            PlayerInfo[playerid][pBVehPlate] = inputtext[32];
            SendClientMessage(playerid, COLOR_GREY, "You've changed your vehicle plate of Vehicle Slot 3");
        }
        else SendClientMessage(playerid, COLOR_GREY, "You've canceled the Registration of your Vehicle Name Plate.");
        return 1;
    }
When i go in game ( My command for this is : /vehicleplate ) and when i type this command, a dialog appears but when i type something in it.....It dosent send me the Client Message, and it also dosent apply...Can anyone help?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)