Vehicle system problems..(y_ini)
#10

Sorry for bump.. but load function is giving the same error...
CODE:
pawn Код:
public LoadVehicleData(vehicleID, name[], value[])
{
    new strLoc[8];
    INI_Int("model", VehicleInfo[vehicleID][vModel]);
    for(new i = 0; i < 4; i++)
    {
        format(strLoc, sizeof(strLoc), "Loc%d", i), INI_Float(strLoc, VehicleInfo[vehicleID][vLoc][i]); //This line!
    }
    INI_Int("color1", VehicleInfo[vehicleID][vColor1]);
    INI_Int("color2", VehicleInfo[vehicleID][vColor2]);
    INI_Int("respawn", VehicleInfo[vehicleID][vRespawn]);
    INI_String("owner", VehicleInfo[vehicleID][vOwner], MAX_PLAYER_NAME);
    VehicleInfo[vehicleID][vLocked] = INI_Int("locked") == 1 ? true : false;
    return 1;
}
ERROR:
pawn Код:
error 029: invalid expression, assumed zero
error 001: expected token: ";", but found "return"
Reply


Messages In This Thread
Vehicle system problems..(y_ini) - by Scrillex - 07.01.2014, 18:24
Re: Vehicle system problems..(y_ini) - by ikey07 - 07.01.2014, 18:28
Re: Vehicle system problems..(y_ini) - by Scrillex - 07.01.2014, 18:34
Re: Vehicle system problems..(y_ini) - by ikey07 - 07.01.2014, 18:37
Re: Vehicle system problems..(y_ini) - by Scrillex - 07.01.2014, 18:44
Re: Vehicle system problems..(y_ini) - by EiresJason - 07.01.2014, 18:50
Re: Vehicle system problems..(y_ini) - by Scrillex - 07.01.2014, 18:59
Re: Vehicle system problems..(y_ini) - by EiresJason - 07.01.2014, 19:00
Re: Vehicle system problems..(y_ini) - by Scrillex - 07.01.2014, 19:04
Re: Vehicle system problems..(y_ini) - by Scrillex - 07.01.2014, 19:35

Forum Jump:


Users browsing this thread: 3 Guest(s)