SA-MP Forums Archive
My YINI system is saving with no name. - 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: My YINI system is saving with no name. (/showthread.php?tid=522526)



My YINI system is saving with no name. - Kratory - 27.06.2014

I have implemented to my gm a simple vehicle system using YINI.
The point is that the .ini files that it saves has no name and it braeks all up when loading de data.
I think there is a problem with my VehiclePath Stock.

ALL THE CODE HERE


Respuesta: My YINI system is saving with no name. - angelxeneize - 27.06.2014

post the code


Re: Respuesta: My YINI system is saving with no name. - Kratory - 28.06.2014

Quote:
Originally Posted by angelxeneize
Посмотреть сообщение
post the code
Click "ALL THE CODE HERE"


Re: My YINI system is saving with no name. - BroZeus - 28.06.2014

pawn Код:
stock VehiclePath(vehicleID)
{
    new strPath[64];
    format(strPath, sizeof(strPath), "/Coches/%d.ini");
 
    return strPath;
}
this to this--
pawn Код:
stock VehiclePath(vehicleID)
{
    new strPath[64];
    format(strPath, sizeof(strPath), "/Coches/%i.ini",vehicleID);
 
    return strPath;
}



Re: My YINI system is saving with no name. - Kratory - 28.06.2014

Yup, fixed. Thank you!