07.02.2015, 21:52
That will subtract 5 from the variable but the result is never used or saved and thus it's useless. You need to assign it and that means it has to have the "=" symbol in it somewhere. You can either do it like this:
Or shorthand (and probably much easier):
pawn Код:
VehicleInfo[idcar][vEngineLife] = VehicleInfo[idcar][vEngineLife] - 5;
pawn Код:
VehicleInfo[idcar][vEngineLife] -= 5;