Quote:
Originally Posted by TitanX
Nice work but i noticed something
PHP код:
new Float:xx, Float:yy, Float:zz,Float:xx2, Float:yy3, Float:zz4;
is not needed also use static not global variables
PHP код:
static Float:x[2], Float:y[2], Float:z[2]
and use for every native a variable like this
PHP код:
GetPlayerPos(hitid, x[0], y[0], z[0])
etc ![Smiley](images/smilies/smile.png)
|
I think you need to learn more about Pawn before making silly comments like this. In this case there is no need to make the variable static since they are only used in that function and the data the variable holds doesn't need to be kept after the function ends.
also did you even bother reading the script properly? If you did you would understand there is nothing wrong with his code.
OT: Not a bad way to do it, could do with some improvements, not tested it but look good.