dini creates an unneeded file
#1

Hey guys. I have a dealership in which you buy vehicles from a dialog. When you purchase a vehicle, it creates the vehicle's file. However, in addition to the vehicles file, it creates a file named "0.ini" in the same directory. I can't figure out why it's doing this.

pawn Код:
new file[128];
format(file, sizeof(file), VEHICLE_FILE, GetPlayerVehicleID(playerid));

if(!dini_Exists(file))
{
     dini_Create(file);
}
Reply
#2

"VEHICLE_FILE" = ... ?
Reply
#3

pawn Код:
#define VEHICLE_FILE "Vehicles/Private Vehicles/%d.ini"
Reply
#4

Either it's a loop problem, or GetPlayerVehicleID is returning 0 somewhere.
Reply
#5

dini is old, I use yini
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)