24.01.2011, 09:23
Can you explain what you are trying to accomplish, more in-depth? With the code you provided, since it is, I assume, nothing of what you are trying to do, it is hard to figure out. If you are trying to apply the "CARRY" animation when the player presses the spring key:
Please notice that it is recommended to use the bit-wise AND (&) instead of the logical AND (&&).
pawn Код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
if( newkeys & KEY_SPRINT )
{
ApplyAnimation( playerid, "CARRY", "carry_prtial", 4.0, 0, 0, 0, 0, 0 );
}
return 1;
}