need some help on a tunning dialog..
#1

hi, i need some help on a tunning dialog..

ok i got the dialog all working no error, but if i'm entering ANY vehicle it cannot mod the vehicle...

its just giving me the (cannot mod this vehicle) msg...

it's giving me some errors in the next code:

thank you for your help..




pawn Код:
public ModCar(playerid)
{
    switch(pmodelid[playerid])
    {
        562,565,559,561,560,575,534,567,536,535,576,411,579,602,496,518,527,589,597,419,
        533,526,474,545,517,410,600,436,580,439,549,491,445,604,507,585,587,466,492,546,551,516,
        426,547,405, 409,550,566,406,540,421,529,431,438,437,420,525,552,416,433,427,490,528,
        407,544,470,598,596,599,601,428,499,609,524,578,486,573,455,588,403,514,423,
        414,443,515,456,422,482,530,418,572,413,440,543,583,478,554,402,542,603,475,568,504,457,
        483,508,429,541,415,480,434,506,451,555,477,400,404,489,479,442,458,467,558
        ShowPlayerDialog(playerid, MECHANICDIALOG, DIALOG_STYLE_LIST, "Tune car menu","Paint Jobs\nColors\nExhausts\nFront Bumper\nRear Bumper\nRoof\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nNext page", "Select", "Exit");
    }
    else
    {
        SendClientMessage(playerid,COLOR_GREY,"* You can't modify this vehicle.");
    }
    return 1;
}
Reply
#2

pawn Код:
public ModCar(playerid)
{
    switch(pmodelid[playerid])
    {
        case 562,565,559,561,560,575,534,567,536,535,576,411,579,602,496,518,527,589,597,419,
        533,526,474,545,517,410,600,436,580,439,549,491,445,604,507,585,587,466,492,546,551,516,
        426,547,405, 409,550,566,406,540,421,529,431,438,437,420,525,552,416,433,427,490,528,
        407,544,470,598,596,599,601,428,499,609,524,578,486,573,455,588,403,514,423,
        414,443,515,456,422,482,530,418,572,413,440,543,583,478,554,402,542,603,475,568,504,457,
        483,508,429,541,415,480,434,506,451,555,477,400,404,489,479,442,458,467,558:
        {
            ShowPlayerDialog(playerid, MECHANICDIALOG, DIALOG_STYLE_LIST, "Tune car menu","Paint Jobs\nColors\nExhausts\nFront Bumper\nRear Bumper\nRoof\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nNext page", "Select", "Exit");
        }

        default:
        {
            SendClientMessage(playerid,COLOR_GREY,"* You can't modify this vehicle.");
        }
    }
    return 1;
}
Reply
#3

thanks... but still dude... every car from the list i've checked and still its saying you cannot mod this vehicle....

is there an other way to do that?.....

thanks for your time..
Reply
#4

Quote:
Originally Posted by FujiNNN
thanks... but still dude... every car from the list i've checked and still its saying you cannot mod this vehicle....

is there an other way to do that?.....

thanks for your time..
Simple, here are the modelids:

pawn Код:
case 562,565,559,561,560,575,534,567,536,535,576,411,579,602,496,518,527,589,597,419,
        533,526,474,545,517,410,600,436,580,439,549,491,445,604,507,585,587,466,492,546,551,516,
        426,547,405, 409,550,566,406,540,421,529,431,438,437,420,525,552,416,433,427,490,528,
        407,544,470,598,596,599,601,428,499,609,524,578,486,573,455,588,403,514,423,
        414,443,515,456,422,482,530,418,572,413,440,543,583,478,554,402,542,603,475,568,504,457,
        483,508,429,541,415,480,434,506,451,555,477,400,404,489,479,442,458,467,558:
You just have to add the ones that you want..

btw, is that from my tune car dialog?
Reply
#5

yeah dude your system is awesome!


its just not right...

maybe something with my command?...

pawn Код:
if(strcmp(cmdtext, "/modcar", true) == 0) {
        new playerstate = GetPlayerState(playerid);
        if(playerstate == PLAYER_STATE_DRIVER) {
          return ModCar(playerid);
        }
        else {
          return SendClientMessage(playerid, COLOR_GREY, "* You must be in a car being the driver.");
        }
    }
Reply
#6

Make sure that you don't have any other dialogs, else if you have, you will have to change dialogs ids...

Or try re-downloading.
Reply
#7

Quote:
Originally Posted by Fedee!
Make sure that you don't have any other dialogs, else if you have, you will have to change dialogs ids...

Or try re-downloading.
i have more dialogs but the IDs are not no the same that you setted them like: DIALOGID+1,+2 etc..

i have renamed them to something like AAAAAAAA_A, BBBBBBB_B, and ADASDASD

hehe..

so yeah..

maybe can you put the public thing in the command together it will help i think.... thanks and sorry for you time waist..
Reply
#8

Quote:
Originally Posted by FujiNNN
Quote:
Originally Posted by Fedee!
Make sure that you don't have any other dialogs, else if you have, you will have to change dialogs ids...

Or try re-downloading.
i have more dialogs but the IDs are not no the same that you setted them like: DIALOGID+1,+2 etc..

i have renamed them to something like AAAAAAAA_A, BBBBBBB_B, and ADASDASD

hehe..

so yeah..

maybe can you put the public thing in the command together it will help i think.... thanks and sorry for you time waist..
Re-download, because my FS dialog ids starts from 1339...

Try it on grandlarc, with no FS, just the tune car dialog..
Reply
#9

dude i got you but please can you add you public command with the /modcar command?...

thanks dude its alot more easer
Reply
#10

It's already on the command..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)