help please
#3

This should work better.
pawn Код:
switch(dialogid)
{
    case 1226:
    {
        if(!response)
        {
            SendClientMessage(playerid, 0xFF0000FF, "You cancelled.");
            return 1;
         }
         switch(listitem)
         {
            case 0:
            {
                if(IsTuner(GetVehicleModel(vehicleid)))
                {
                    ShowPlayerDialog(playerid,1240,DIALOG_STYLE_LIST,"Spoilers","Spoiler Pro\nSpoiler Win\nSpoiler Drag\nSpoiler Alpha\nSpoiler Race\nSpoiler Worx","Ok", "Cancel");
                    return 1;
                }
                else SendClientMessage(playerid,COLOR_DARKORANGE,"You have to be in a Tuner");
            }
        }
    }
}

stock IsTuner(modelid)
{
    switch(modelid)
    {
        case 562, 565, 559
        560, 558, 561:return true;
    }
    return false;
}
"new tuners = 562||565||559||560||558||561;" won't work you must give that variable one value. You cant say it is 562 or 568 ...
Reply


Messages In This Thread
help please - by bartje01 - 06.01.2011, 14:21
Re: help please - by bartje01 - 06.01.2011, 15:28
Re: help please - by iggy1 - 06.01.2011, 15:48
Re: help please - by bartje01 - 06.01.2011, 16:22
Re: help please - by iggy1 - 06.01.2011, 16:25
Re: help please - by bartje01 - 06.01.2011, 16:27
Re: help please - by iggy1 - 06.01.2011, 16:29
Re: help please - by bartje01 - 06.01.2011, 16:35
Re: help please - by bartje01 - 06.01.2011, 16:46
Re: help please - by iggy1 - 06.01.2011, 16:48

Forum Jump:


Users browsing this thread: 4 Guest(s)