25.05.2012, 09:21
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:
And I get those errors:
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..");
}
}
}
}
Код:
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