28.12.2015, 20:58
So, I'm trying to create my own vehicle system using this tutorial: https://sampforum.blast.hk/showthread.php?tid=416104
I've already fixed all the errors, but I'm still getting this warning:
The code is:
However, there are some other functions such as:
And if I remove "vehicleid" from the "VehicleFile" function, it shows warnings on all the other functions that do use VehicleFile(vehicleid). So, is there any way to fix this? It's very annoying and I'm not sure if it would create any bugs.
I've already fixed all the errors, but I'm still getting this warning:
Код:
warning 203: symbol is never used: "vehicleid"
Код:
VehicleFile(vehicleid) { new strPath[64]; format(strPath, sizeof(strPath), "Test/Vehicles/%d.ini"); return strPath; }
Код:
VehicleSave(vehicleid) { new INI:vFile = INI_Open(VehicleFile(vehicleid)); LoadAllVehicles() { new index = 0; while(fexist(VehicleFile(index))) { VehicleLoad(index, VehicleFile(index));