Help - onServerStop

Started by Luis_Labarca, Jan 31, 2019, 07:34 PM

Previous topic - Next topic

Luis_Labarca

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?? :-[
My server RP
IP: 51.222.28.159:8194

NicusorN5

Does the file Datos.ini exist? Is the INIParser plugin loaded?