Problem
#1

Hi guys, I have a problem, everytime I type the command, it shows that the vehicle value is 0, even the vehicle price, still 0, I use Y_ini to save vehicle files, they are all separate, please help me to fix this

Vehicle Information code
pawn Код:
enum FRICNR_vehicle
{
    vModel,
    vColor1,
    vColor2,
    vPrice,
    vOwner[24],
    Float:vPosX,
    Float:vPosY,
    Float:vPosZ,
    Float:vPosA,
    vPlate[32],
    vPaintJob,
    vLocked,
    vNeons,
    vFuel,
    Float:vHealth,
    vValue
}
new VehicleInfo[MAX_SHOP_VEHICLES][FRICNR_vehicle];
pawn Код:
#define VEH_FILE "FRICNR/Vehicles/%d.ini"
Problem code:
pawn Код:
new vfile[40];
new v = GetPlayerVehicleID(playerid);
format(vfile, sizeof(vfile), VEH_FILE, v);
INI_Load(vfile, true, playerid);
new smsg[100];
format(smsg, sizeof(smsg), "Vehicle Value: %d  | Vehicle Price: %d", VehicleInfo[v][vValue], VehicleInfo[v][vPrice]);
SendClientMessage(playerid, WHITE, smsg);
The vehicle value and price are both set to 2000000 on the vehicle ini file
Код:
Model = 411
Color1 = 1
Color2 = 0
Price = 2000000
Owner = [AOD]Bogdi
PosX = 1729.681030
PosY = 1856.973999
PosZ = 10.651900
PosA = 1.703299
Plate = FriCNR
PaintJob = 0
Locked = 0
Neons = -1
Fuel = 100
Health = 1000.000000
Mod1 = 0
Mod2 = 0
Mod3 = 0
Mod4 = 0
Mod5 = 0
Mod6 = 0
Mod7 = 0
Mod8 = 0
Mod9 = 0
Mod10 = 0
Mod11 = 0
Mod12 = 0
Value = 2000000
The value and price is both set up to 2000000 but it gives me always 0 please help
Please help I will + rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)