onplayerkeystatechange "PRESSED" unexpected token
#10

Quote:
Originally Posted by Daymen
Посмотреть сообщение
This should work.

Note: I just reworked your "Message" function so I could see if it would spit any errors when compiling. Simply replace this with your message function or test it with it, I don't care. :P

Код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys ) {

	if ( newkeys & KEY_JUMP ) {

		if ( DB[playerid][SuperJumpLevel] == 1 ) {

			GetPlayerVelocity( playerid, F[0], F[1], F[2] );
			SetPlayerVelocity( playerid, F[0] * 1.3, F[1] * 2, F[2] + 0.1 );
			SendClientMessage( playerid, -1, "Super Jump Established." );

		}

	}

	return 1;

}
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

[Finished in 0.1s]
no errors but it does not recognize when I jump in the game. no idea why.
I have SuperJump on my account so it's not the problem, also made sure and took the message out of the superjump dependence, still nothing.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)