Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Luis_Labarca on Jan 31, 2019, 07:34 PM

Title: Help - onServerStop
Post by: Luis_Labarca on Jan 31, 2019, 07:34 PM
Hi friends, as I have a problem, I would like to close the server to save the data, I use this example to save

function onServerStop()
{
for (local i=0; i<10; i++)
{
WriteIniString( "Datos.ini", "Objectos", i+"","2 3 4 5 6" );
}
}

and it does not work for me I try on onServerStart and it works



that's how it works
function onServerStart()
{
for (local i=0; i<10; i++)
{
WriteIniString( "Datos.ini", "Objectos", i+"","2 3 4 5 6" );
}
}

what is the problem?? :-[
Title: Re: Help - onServerStop
Post by: NicusorN5 on Feb 01, 2019, 10:50 AM
Does the file Datos.ini exist? Is the INIParser plugin loaded?