Need help again ^^
#1

Hey, when i type /buyvehicle it will only show some of the vehicles, it shows only one page, not page 2 and 3,
Anyone know whats wrong?

here is a Picture


/buyvehicle command
pawn Код:
if(strcmp(cmd, "/buyvehicle", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!IsAtDealership(playerid))
            {
                SendClientMessage(playerid, COLOR_WHITE, "You are not near a car dealership.");
                return 1;
            }
            if(!strlen(tmp))
            {
                if(PlayerToPoint(3.0, playerid,-2033.3193,-117.6438,1035.1718))
                {
                    new vehicle2[28];
                    vehicle2[0] = 602;
                    vehicle2[1] = 542;
                    vehicle2[2] = 549;
                    vehicle2[3] = 555;
                    vehicle2[4] = 489;
                    vehicle2[5] = 579;
                    vehicle2[6] = 551;
                    vehicle2[7] = 496;
                    vehicle2[8] = 580;
                    vehicle2[9] = 526;
                    vehicle2[10] = 516;
                    vehicle2[11] = 491;
                    vehicle2[12] = 445;
                    vehicle2[13] = 545;
                    vehicle2[14] = 540;
                    vehicle2[15] = 527;
                    vehicle2[16] = 529;
                    vehicle2[17] = 546;
                    vehicle2[18] = 533;
                    vehicle2[19] = 566;
                    vehicle2[20] = 550;
                    vehicle2[21] = 400;
                    vehicle2[22] = 561;
                    vehicle2[23] = 482;
                    vehicle2[24] = 405;
                    vehicle2[25] = 412;
                    vehicle2[26] = 567;
                    vehicle2[27] = 536;
                    ShowModelSelectionMenuEx(playerid, vehicle2, 28, "Coutt And Schutz", dealership1, -16.0, 0.0, -55.0);
                }
            }
        }
        return 1;
    }
Reply
#2

You don't need to create another topic, You can just simply reply down to your old topic (Just below my topic)
Since the topic is related to the one you had earlier, Why don't you post down on that topic?

You are just creating a spam.
Reply
#3

One of the reason this might be happening is because mS_CUSTOM_MAX_ITEMS isn't big enough. You can find out if this is the case by looking in either the console or the server log for something like this:
pawn Код:
[15:47:39] -mSelection- WARNING: Too many items given to "ShowModelSelectionMenuEx", increase "mS_CUSTOM_MAX_ITEMS" to fix this
To fix this issue simply go to your includes folder and open mSelection.inc, use 'CTRL + F' to search. Search for the keyword 'mS_CUSTOM_MAX_ITEMS' and edit it to something higher. You should be fine setting 'mS_CUSTOM_MAX_ITEMS' to 28.
Reply
#4

I'm not getting that warning Anthony
Reply
#5

Quote:
Originally Posted by Mikkel_RE
Посмотреть сообщение
I'm not getting that warning Anthony
I don't know what's wrong then, I copied most of your code and tried it myself on my local server and I got that warning, after I changed 'mS_CUSTOM_MAX_ITEMS' it worked perfectly. If you haven't tried it yet I recommend you try it just incase.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)