Plate system
#8

On a mxINI:

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);
}
And then vehicle death (not spawn, number sets after respawn):
pawn Код:
new number[30];
format(number, sizeof(number), "%d.ini", car);
if(fexist(number))
{
    ini_getString (iniFile, "NumberPlate", CarInfo[vehicleid][cPlate]);
    ini_closeFile (iniFile);
}
Try...
Reply


Messages In This Thread
Plate system - by GTA-Roleplay - 13.10.2011, 08:03
Re: Plate system - by OKStyle - 13.10.2011, 08:15
Re: Plate system - by GTA-Roleplay - 13.10.2011, 08:20
Re: Plate system - by Jack_Leslie - 13.10.2011, 08:22
Re: Plate system - by GTA-Roleplay - 13.10.2011, 08:24
Re: Plate system - by Jack_Leslie - 13.10.2011, 08:27
Re: Plate system - by Retardedwolf - 13.10.2011, 08:30
Re: Plate system - by OKStyle - 13.10.2011, 08:40
Re: Plate system - by GTA-Roleplay - 13.10.2011, 09:03

Forum Jump:


Users browsing this thread: 1 Guest(s)