Super Jump..
#1

I don't know why this is happening.
androids have the ability to super jump,but for some reason,They super jump when I press ANY KEY! EVEN AIM!

Here's a video on this bug : https://www.youtube.com/watch?v=rbPj...ature=*********

They're supposed to jump from LALT ( WALK KEY).

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
if(
GetPlayerTeam(playerid) == 2)
{
if(
PRESSED(KEY_WALK))
{
new 
Float:x,Float:y,Float:z;
GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
SetPlayerVelocity(playerid,Float:x,Float:y*1.0,Float:z+0.81.2);

Please help me,I do not understand or seem to see where I've done this mistake.
Reply
#2

As i pointed out 20min ago in your old thread, you're missing a bracket.
Reply
#3

Quote:
Originally Posted by Troydere
Посмотреть сообщение
As i pointed out 20min ago in your old thread, you're missing a bracket.
is that causing the bug?

Here's more of it.
PHP код:
}
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
if(
GetPlayerTeam(playerid) == 2)
{
if(
PRESSED(KEY_WALK))
{
new 
Float:x,Float:y,Float:z;
GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
SetPlayerVelocity(playerid,Float:x,Float:y*1.0,Float:z+0.81.2);
}
}

Quote:
Originally Posted by ProBro
Please help me,I do not understand or seem to see where I've done this mistake.
Reply
#4

EDIT: KOSTABRAVA
Reply
#5

Quote:
Originally Posted by RyderX
Посмотреть сообщение
EDIT: KOSTABRAVA
hahaha
Reply
#6

Quote:
Originally Posted by ProBro
Посмотреть сообщение
is that causing the bug?

Here's more of it.
PHP код:
}
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
if(
GetPlayerTeam(playerid) == 2)
{
if(
PRESSED(KEY_WALK))
{
new 
Float:x,Float:y,Float:z;
GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
SetPlayerVelocity(playerid,Float:x,Float:y*1.0,Float:z+0.81.2);
}
}

Please post the entire OnPlayerKeyStateChange callback, you look like steam games throwing out dlc.

Also, what is this?
Код:
Float:y*1.0
Reply
#7

Код:
if (newkeys & KEY_WALK)
Reply
#8

Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
Код:
if (newkeys & KEY_WALK)
OMGG WORKED THANKS BRO!
Reply
#9

Quote:
Originally Posted by Troydere
Посмотреть сообщение
Please post the entire OnPlayerKeyStateChange callback, you look like steam games throwing out dlc.

Also, what is this?
Код:
Float:y*1.0
Nevermind,Thanks to Goldenlion it's fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)