18.04.2016, 07:19
Hi,
https://sampwiki.blast.hk/wiki/TireStates
as 0111 should return 7 but return 14
as 1110 should return 14 but return 7
It's a bug and how to fix it?
Код:
new restreturn = encode_tires( 0, 1, 1,1 ); printf("%d", restreturn);
Код:
stock encode_tires(tires1, tires2, tires3, tires4) { return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3); }
as 0111 should return 7 but return 14
Код:
new restreturn = encode_tires( 1,1,1,0 ); printf("%d", restreturn);
It's a bug and how to fix it?