Lag after executing cmd
#1

I'm getting lags after executing cmds..
like /buyvehicle and dialog pops out, after you select car, you get like 1min lag and then the car spawns and everything works fine.. untill next cmd..
maybe it has something with my homehost? :S
Reply
#2

Can we see the Cmd ?
Reply
#3

Quote:
Originally Posted by Stigg
Посмотреть сообщение
Can we see the Cmd ?
it's like every cmd..
edit:
pawn Код:
if(strcmp(cmd, "/buyvehicle", true) == 0)
    {
        if(PlayerToPoint(3.0, playerid,-2138.0127,-2083.6497,64.5558))  return ShowPlayerDialog(playerid, DIALOG_BUYVEHICLE, DIALOG_STYLE_LIST, "Select the kind of vehicle you want to buy", "Bycicles\nBikes\nCars\nJeeps\nSport Cars\nVans/Utility", "Select", "Cancel");
        SendClientMessage(playerid, COLOR_GREY, "[ERROR]: You are too far from the dealership!");
        return 0;
    }
pawn Код:
if(dialogid == DIALOG_BUYVEHICLEJEEPS)
    {
        if (response == 1)
        {
            switch(listitem)
            {
                case 0:
                {
                    BuyVehicleForPlayer(playerid, 500);
                }
                case 1:
                {
                    BuyVehicleForPlayer(playerid, 400);
                }
                case 2:
                {
                    BuyVehicleForPlayer(playerid, 479);
                }
                case 3:
                {
                    BuyVehicleForPlayer(playerid, 489);
                }
                case 4:
                {
                    BuyVehicleForPlayer(playerid, 579);
                }
            }
        }
        else
        {
            ShowPlayerDialog(playerid, DIALOG_BUYVEHICLE, DIALOG_STYLE_LIST, "Select the kind of vehicle you want to buy", "Bycicles\nBikes\nCars\nJeeps\nSport Cars\nVans", "Select", "Cancel");
        }

    }
example of the cmd,
I noticed that I'm missing returns, maybe that's causing it?
Reply
#4

lol I thought you meant just the /buyvehicle cmd.

Have you checked your loops and timers ?
Reply
#5

Quote:
Originally Posted by Stigg
Посмотреть сообщение
lol I thought you meant just the /buyvehicle cmd.

Have you checked your loops and timers ?
I edited my last answer, check it out..
Reply
#6

Quote:
Originally Posted by 77ther
Посмотреть сообщение
I edited my last answer, check it out..
I cant see anything wrong m8, cant see it being the 'returns' you mentioned.

Sorry.
Reply
#7

is this for anyone or only for you?
Reply
#8

Quote:
Originally Posted by Roomeo
Посмотреть сообщение
is this for anyone or only for you?
I'm the only one on my homehost so I don't know..
Reply
#9

Show us your "BuyVehicleForPlayer" function, that is most likely what is causing the lag.
Reply
#10

Quote:
Originally Posted by Skylar Paul
Посмотреть сообщение
Show us your "BuyVehicleForPlayer" function, that is most likely what is causing the lag.
Its happening with ALL his cmd's.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)