Vehicle system problems..(y_ini)
#1

Hello everyone.

So I have some problems with this code:
pawn Код:
stock VehicleSave(vehicleID)
{
    new INI:dFile = INI_Open(VehiclePath(vehicleID));
    new strLoc[8];
    INI_WriteInt(dFile, "model", VehicleInfo[vehicleID][vModel]);
    for(new i = 0; i < 4; i++)
    format(strLoc, sizeof(strLoc), "Loc%d", i),INI_Float(dFile, strLoc, VehicleInfo[vehicleID][vLoc][i]);//THIS IS THE ERROR LINE!
    INI_WriteInt(dFile, "color1", VehicleInfo[vehicleID][vColor1]);
    INI_WriteInt(dFile, "color2", VehicleInfo[vehicleID][vColor2]);
    INI_WriteInt(dFile, "respawn", VehicleInfo[vehicleID][vRespawn]);
    INI_WriteString(dFile, "owner", VehicleInfo[vehicleID][vOwner]);
    INI_WriteInt(dFile, "locked", VehicleInfo[vehicleID][vLocked] ? 1 : 0);
    INI_Close(dFile);
}
Errors:

pawn Код:
error 029: invalid expression, assumed zero
error 035: argument type mismatch (argument 1)
error 001: expected token: ";", but found "return"
fatal error 107: too many error messages on one line
Thank you for your time..

With best regards Scrillex.
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: 1 Guest(s)