After GMX REP+
#1

Hi All.I need problem with my tune setup system.When i save components its here on /rac - Respawn all cars but when server restart (/gmx) or from Host Panel GMX the tune is not here :/ i have any public's and others...

pawn Код:
for(new h = 1; h < sizeof(TuneInfo); h++)
    {
        format(string2, sizeof(string2), "BERP/Koli/%d.ini",h);
        if(dini_Exists(string2))
        {
            if(TuneInfo[h][Komponenta13] != 999)
            {
                ChangeVehiclePaintjob(h, TuneInfo[h][Komponenta13]);
            }
            TunirajVozilo(h);
        }
    }
pawn Код:
public TunirajVozilo(carid)
{
    if(TuneInfo[carid][Komponenta1] >= 0)
    {
        AddVehicleComponent(carid, TuneInfo[carid][Komponenta1]);
    }
    if(TuneInfo[carid][Komponenta2] >= 0)
    {
        AddVehicleComponent(carid, TuneInfo[carid][Komponenta2]);
    }
    if(TuneInfo[carid][Komponenta3] >= 0)
    {
        AddVehicleComponent(carid, TuneInfo[carid][Komponenta3]);
    }
    if(TuneInfo[carid][Komponenta4] >= 0)
    {
        AddVehicleComponent(carid, TuneInfo[carid][Komponenta4]);
    }
    if(TuneInfo[carid][Komponenta5] >= 0)
    {
        AddVehicleComponent(carid, TuneInfo[carid][Komponenta5]);
    }
    if(TuneInfo[carid][Komponenta6] >= 0)
    {
        AddVehicleComponent(carid, TuneInfo[carid][Komponenta6]);
    }
    if(TuneInfo[carid][Komponenta7] >= 0)
    {
        AddVehicleComponent(carid, TuneInfo[carid][Komponenta7]);
    }
    if(TuneInfo[carid][Komponenta8] >= 0)
    {
        AddVehicleComponent(carid, TuneInfo[carid][Komponenta8]);
    }
    if(TuneInfo[carid][Komponenta9] >= 0)
    {
        AddVehicleComponent(carid, TuneInfo[carid][Komponenta9]);
    }
    if(TuneInfo[carid][Komponenta10] >= 0)
    {
        AddVehicleComponent(carid, TuneInfo[carid][Komponenta10]);
    }
    if(TuneInfo[carid][Komponenta11] >= 0)
    {
        AddVehicleComponent(carid, TuneInfo[carid][Komponenta11]);
    }
    if(TuneInfo[carid][Komponenta12] >= 0)
    {
        AddVehicleComponent(carid, TuneInfo[carid][Komponenta12]);
    }
    if(TuneInfo[carid][Komponenta13] >= 0)
    {
        AddVehicleComponent(carid, TuneInfo[carid][Komponenta13]);
    }
}
I have and on the Onvehiclespawn and etc...HELP !! REPPING + I have a folder which is saving
Reply
#2

Help ??
Reply
#3

I would never recommend using GMX it causes client bugs your better off completely restarting your server.
Reply
#4

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
I would never recommend using GMX it causes client bugs your better off completely restarting your server.
GMX command is calling the OnGameModeExit callback. What do you think the server does when you hit the restart button in your host?
Reply
#5

Quote:
Originally Posted by Cypress
Посмотреть сообщение
GMX command is calling the OnGameModeExit callback. What do you think the server does when you hit the restart button in your host?
It doesn't actually stop the process, you need to stop the process and restart the server fully GMX simply reloads the gamemode which causes all sorts of client bugs this is well known and that is why I would never recommend using it nor relying on it for anything.

/rcon gmx - Will load the next gamemode in server.cfg.
Reply
#6

OK BUT HELP ME DO NOT A SAY FOR GMX !
Reply
#7

Chances are you're not saving these OnGameModeExit, I don't see why you don't just save them after the player finishes tuning the vehicle to save having to cycle that much to save each vehicle, The whole ini file per vehicle thing seems quite inefficient, assuming I read the code right, that's what it does right?
Reply
#8

GMX is known to cause issues. Use a different way of restarting, or simply restart from your VPS/Control panel, if you have one.
Reply
#9

BUMP !
Reply
#10

Anyone to help :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)