y_ini Problem with loading vehicles
#1

Hi. I'm trying to add a vehicle system to my GM.
I'm new in y_ini, but I'm trying to make a GM working on y_ini .
Here's the code:
pawn Код:
#define                 GVP                      GetVehiclePath
pawn Код:
public LoadVehicles()
{
    for (new i; i < MAX_VEHICLES; i++)
    {
        if (GetVehicleModel(i) >= 400) // If the vehicle exists
        {
            if (fexist(GVP(i)))
            {
                new INI:File = INI_Open(GVP(i));
                INI_Int(File, "Color1", VehicleInfo[i][vColor1]);
                INI_Int(File, "Color2", VehicleInfo[i][vColor2]);
                INI_Close(File);
            }
            else
            {
                print("Vehicle doesn't exists..");
            }
        }
    }
}
And I get those errors:
Код:
vb-trucking.pwn(92) : error 035: argument type mismatch (argument 1)
vb-trucking.pwn(92) : error 017: undefined symbol "value"
vb-trucking.pwn(93) : error 035: argument type mismatch (argument 1)
vb-trucking.pwn(93) : error 017: undefined symbol "value"
vb-trucking.pwn(102) : warning 209: function "LoadVehicles" should return a value
Reply
#2

Which lines are 92 and 93 ?
Reply
#3

pawn Код:
INI_Int(File, "Color1", VehicleInfo[i][vColor1]);
INI_Int(File, "Color2", VehicleInfo[i][vColor2]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)