Minus something
#2

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:
pawn Код:
VehicleInfo[idcar][vEngineLife] = VehicleInfo[idcar][vEngineLife] - 5;
Or shorthand (and probably much easier):
pawn Код:
VehicleInfo[idcar][vEngineLife] -= 5;
Reply


Messages In This Thread
Minus something - by Sn00Py - 07.02.2015, 21:49
Re: Minus something - by Vince - 07.02.2015, 21:52
Re: Minus something - by CalvinC - 07.02.2015, 21:53
Re: Minus something - by Sn00Py - 07.02.2015, 21:53

Forum Jump:


Users browsing this thread: 1 Guest(s)