13.10.2011, 08:40
On a mxINI:
After SetVehicleToRespawn(GetPlayerVehicleID(playerid));:
And then vehicle death (not spawn, number sets after respawn):
Try...
After SetVehicleToRespawn(GetPlayerVehicleID(playerid));:
pawn Код:
new number[30];
format(number, sizeof(number), "%d.ini", car);
new iniFile = ini_createFile (number);
if(iniFile < 0) iniFile = ini_openFile (number);
if(iniFile >= 0)
{
ini_setString (iniFile, "NumberPlate", CarInfo[car][cPlate]);
ini_closeFile (iniFile);
}
pawn Код:
new number[30];
format(number, sizeof(number), "%d.ini", car);
if(fexist(number))
{
ini_getString (iniFile, "NumberPlate", CarInfo[vehicleid][cPlate]);
ini_closeFile (iniFile);
}