Quote:
Originally Posted by thEsp
Quote the op, please.
|
to initial a start value for an array
You should do this
PHP Code:
new bool:is_sprinting[33] = {false, ...}
INSTEAD OF
PHP Code:
new bool:is_sprinting[33] = false;
I quoted you just to clarify you see this.
This is a common mistake alot of people fell into.
OP : also why are you using server_frame ?
You could use ham_deploy or any other forward that's called on weapon switch. It will be more efficient.
And also you should change maxspeed and not applying a velocity in the player direction that is aiming at, so if I'm aiming forward and moving right or left my sprinting will effect my movement.
__________________