After GMX REP+ - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: After GMX REP+ (
/showthread.php?tid=483184)
After GMX REP+ -
ScripteRMKD - 24.12.2013
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
Re: After GMX REP+ -
ScripteRMKD - 26.12.2013
Help ??
Re: After GMX REP+ -
Pottus - 26.12.2013
I would never recommend using GMX it causes client bugs your better off completely restarting your server.
Re: After GMX REP+ -
Cypress - 26.12.2013
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?
Re: After GMX REP+ -
Pottus - 26.12.2013
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.
Re: After GMX REP+ -
ScripteRMKD - 26.12.2013
OK BUT HELP ME DO NOT A SAY FOR GMX !
Re: After GMX REP+ -
Hoborific - 26.12.2013
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?
Re: After GMX REP+ -
Abagail - 26.12.2013
GMX is known to cause issues. Use a different way of restarting, or simply restart from your VPS/Control panel, if you have one.
Re: After GMX REP+ -
ScripteRMKD - 27.12.2013
BUMP !
Re: After GMX REP+ -
ScripteRMKD - 27.12.2013
Anyone to help :/