16.01.2013, 22:11
Why my server dont work dini_Create function? ive included but it dont works :P please help
#define FUEL_STATION_FILE_PATH "NMW/Benziski/Benziski.ini" SaveFuelStation(stationid) { new filestring[512]; if(!dini_Exists(FUEL_STATION_FILE_PATH)) dini_Create(FUEL_STATION_FILE_PATH); format(filestring, sizeof(filestring), "%d,%.3f,%.3f,%.3f,%f\n", FuelStationCreated[stationid], FuelStationPos[stationid][0], FuelStationPos[stationid][1], FuelStationPos[stationid][2], FuelStationTank[stationid] ); new stationids[5]; valstr(stationids,stationid); dini_Set(FUEL_STATION_FILE_PATH,stationids,filestr ing); } |