onplayerkeystatechange "PRESSED" unexpected token
#9

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]
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)