Need Help with Dialog
#4

pawn Код:
if(dialogid == 199)
{
    if(response)
    {
    switch(listitem)
    {
        case 0:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1073); //Shadow
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Shadow Tires");
        }
        case 1:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1074); //Mega
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Mega Tires");
        }
        case 2:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1053); //Rimshine
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Rimshine Tires");
        }
        case 3:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1076); //Wires
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Wires Tires");
        }
        case 4:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1077); //Classic
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Classic Tires");
        }
        case 5:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1078); //Twist
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Twist Tires");
        }
        case 6:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1079); //Cutter
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Cutter Tires");
        }
        case 7:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1080); //Switch
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Switch Tires");
        }
        case 8:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1081); //Grove
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Grove Tires");
        }
        case 9:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1082); //Import
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Import Tires");
        }
        case 10:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1083); //Dollar
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Dollar Tires");
        }
        case 11:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1084); //Trance
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Trance Tires");
        }
        case 12:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1085); //Atomic
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Atomic Tires");
        }
        case 13:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1096); //Ahab
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Ahab Tires");
        }
        case 14:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1097); //Virtual
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Virtual Tires");
        }
        case 15:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1098); //Access
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Access Tires");
        }
        case 16:
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid),1025); //Offroad
            SendClientMessage(playerid, COLOR_ORANGE, "You have got changed your tires to Offroad Tires");
            return 1;
        }
    }
}
If you use dialog id above 32767 it will not work as 32767 is the max dialog id.
This was the problem, there were 3 {'s in the starting but there were only 2 }'s so it took me about 3 seconds to realize there was another } absent, please try and solve your problems by yourself sometimes too.
Good luck.
Reply


Messages In This Thread
Need Help with Dialog - by San1 - 04.06.2013, 19:43
Re: Need Help with Dialog - by Littlehelper - 04.06.2013, 19:49
Re: Need Help with Dialog - by Vince - 04.06.2013, 19:50
Re: Need Help with Dialog - by Littlehelper - 04.06.2013, 19:55
Re: Need Help with Dialog - by San1 - 04.06.2013, 20:02
Re: Need Help with Dialog - by San1 - 04.06.2013, 21:02
Re: Need Help with Dialog - by Littlehelper - 04.06.2013, 21:08

Forum Jump:


Users browsing this thread: 3 Guest(s)