vehicle respawn problem

Started by Spice, Jul 26, 2015, 02:52 PM

Previous topic - Next topic

Spice

yes you r right but  i am talking about only post and pre increament operator both didnt work same in every circumstance....that was my point

.

Also your case 1 is invalid here because Squirrel and many other programming languages don't have the '=+' operator. Here we have '+='.
.

Spice

#17
Quote from: S.L.C on Jul 27, 2015, 08:22 AMAlso your case 1 is invalid here because Squirrel and many other programming languages don't have the '=+' operator. Here we have '+='.
sry i dont know about that but the example that i gave u was in java and it works fine....case 1 is valid in java u can check it.....and if u say that is in valid then it means pre increament op.  doesn't work in squirrel....?

.

@Stormeus Choosing to use ++i instead of i++ inside for loops is probably a mater of preference. Doesn't cost me anything to do it and if it so happens to be a micro-optimization then so be it ;D
.