A simplify of my Macro to replace a value of a nibble - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A simplify of my Macro to replace a value of a nibble (
/showthread.php?tid=467965)
A simplify of my Macro to replace a value of a nibble -
IPrototypeI - 05.10.2013
Hello everyone i want to ask if someone knows simpler way to replace a value of a nibbles ( 4 Bit-Block).
I think that there is a easier way but i don`t know how, thats the problem and even that i don`t know for what i have to search to get an example or something that looks similarly maybe one of you know a other way.
Firstly i thought that i can use #emit to do that but a look into the pawn Implementer guide broke down this idea because i have not the possiblity to use every Bit-Operator only Bit-Shift right or left.
My Macro:
PHP код:
#define SetSecoundArrayMarker(%0) ArrayMarker[%0] |= (((ArrayMarker[%0] >>> 4)+1) << 8),ArrayMarker[%0] &= ~(0xF<< 4),ArrayMarker[%0] |= ((ArrayMarker[%0] >>> 8)<< 4),ArrayMarker[%0] &= ~(0xF<< 8)
Re: A simplify of my Macro to replace a value of a nibble -
IPrototypeI - 05.10.2013
delete