warning 203: symbol is never used: "vehicleid"
#3

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
The '%d' specifier in your format needs a value. That's what the vehicleid parameter is for.

PHP код:
format(strPathsizeof(strPath), "Test/Vehicles/%d.ini"vehicleid); 
That's what I thought at first, but wouldn't this cause an issue with the LoadAllVehicles function?

Код:
LoadAllVehicles()
{
	new index = 0;

	while(fexist(VehicleFile(index)))
	{
		VehicleLoad(index, VehicleFile(index));
		index++;
	}

	printf("Vehicles Loaded: %d", index);
}
The function assigns "index" as the value for the VehicleFile function, not "vehicleid". How would the string be formatted if it's already set to "vehicleid"?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)