15.04.2015, 18:58
its giving me error,
What's the problem?
its at return 1;
PHP код:
: error 010: invalid function or declaration
its at return 1;
PHP код:
stock LoadVehs()
{
new vehinfo[21][32];
new string[256];
new File:file = fopen("vehs.cfg", io_read);
if(file)
{
new idx = 1;
while(idx < MAX_VEHS)
{
fread(file, string);
split(string, binfo, '|');
HouseInfo[idx][vehModel] = strval(vehinfo[0]);
format(HouseInfo[idx][vehOwner], 32, "%s", vehinfo[1]);
VehicleInfo[idx][vehX] = floatstr(vehinfo[2]);
VehicleInfo[idx][vehY] = floatstr(vehinfo[3]);
VehicleInfo[idx][vehZ] = floatstr(vehinfo[4]);
VehicleInfo[idx][vehR] = strval(vehinfo[5]);
CreateVehicle(VehicleInfo[idx][vehModel],VehicleInfo[idx][vehX], VehicleInfo[idx][vehY],VehicleInfo[idx][vehZ],VehicleInfo[idx][vehR]);
}
idx++;
}
}
return 1; // this line
}