y it doesnt work?
#1

y It Doesnt Work?


Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if (PRESSED(KEY_JUMP))
	{
		new
			Float:x,
			Float:y,
			Float:z;
		GetPlayerPos(playerid, x, y, z);
		SetPlayerPos(playerid, x, y, z + 20.0);
	}
	return 1;
}
plz answer
Reply
#2

What about test it them if it dont works and you cant fix it ask for help?
Reply
#3

he tested i guess
Reply
#4

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (newkeys & KEY_JUMP)
    {
        new Float:Velocity[3];
        GetPlayerVelocity(playerid, Velocity[0], Velocity[1], Velocity[2]);
        SetPlayerVelocity(playerid, Velocity[0], Velocity[1], Velocity[2] + 20.0);
    }
    return 1;
}
Reply
#5

it still doesnt work...

And YES
i tested it before....
Reply
#6

Quote:
Originally Posted by [ProX]BlueFire
Посмотреть сообщение
it still doesnt work...

And YES
i tested it before....
Use this, This is working i've tested.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (newkeys & KEY_JUMP)
    {
        new Float:Velocity[3];
        GetPlayerVelocity(playerid, Velocity[0], Velocity[1], Velocity[2]);
        SetPlayerVelocity(playerid, Velocity[0], Velocity[1], Velocity[2] + 20.0);
    }
    return 1;
}
Reply
#7

Quote:
Originally Posted by [ProX]BlueFire
Посмотреть сообщение
y It Doesnt Work?


Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if (PRESSED(KEY_JUMP))
	{
		new
			Float:x,
			Float:y,
			Float:z;
		GetPlayerPos(playerid, x, y, z);
		SetPlayerPos(playerid, x, y, z + 20.0);
	}
	return 1;
}
plz answer
Strange it doesn't work, because I got a GM that use KEY_JUMP to set player's Z + 40
Reply
#8

k works thx =D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)