Posts: 458
Threads: 39
Joined: Apr 2011
Quote:
Originally Posted by OKStyle
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...
|
no already fixed
not needed. thanks anyway