19.07.2017, 15:17
PHP код:
// PRESSED(keys)
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0))*!= (%0))
if (PRESSED( newkeys, KEY_JUMP )) // error line
{
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);
Message(playerid, TYPE_SERVER, "Jump recognized.");
}
}
PHP код:
error 001: expected token: ")", but found "*"
error 029: invalid expression, assumed zero