SA-MP Forums Archive
y_ini Problem with loading vehicles - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: y_ini Problem with loading vehicles (/showthread.php?tid=345483)



y_ini Problem with loading vehicles - Verbal - 25.05.2012

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



Re: y_ini Problem with loading vehicles - MadeMan - 25.05.2012

Which lines are 92 and 93 ?


Re: y_ini Problem with loading vehicles - Verbal - 25.05.2012

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