error 035: argument type mismatch (argument 1)
#2

Make sure that vehicleid is an integer. The code seems fine and it compiles fine as well.

pawn Код:
#define VEHICLE_PATH "%i.ini"

public OnFilterScriptInit( )
{
    new INI:file = INI_Open (VehiclePath(1));//ERROR LINE
    return 1;
}

stock VehiclePath (vehicleid)
{
    new string[128];
    format(string,sizeof(string),VEHICLE_PATH,vehicleid);
    return string;
}
Reply


Messages In This Thread
error 035: argument type mismatch (argument 1) - by Riwerry - 15.11.2013, 15:19
Re: error 035: argument type mismatch (argument 1) - by Konstantinos - 15.11.2013, 15:27
Re: error 035: argument type mismatch (argument 1) - by Riwerry - 15.11.2013, 15:30
Re: error 035: argument type mismatch (argument 1) - by Konstantinos - 15.11.2013, 15:41
Re: error 035: argument type mismatch (argument 1) - by Riwerry - 15.11.2013, 15:59
Re: error 035: argument type mismatch (argument 1) - by XStormiest - 15.11.2013, 16:15
Re: error 035: argument type mismatch (argument 1) - by Riwerry - 15.11.2013, 16:36

Forum Jump:


Users browsing this thread: 1 Guest(s)