My Timer is not working +Rep+
#3

Stop re-posting this thread. Change your OnPlayerKeyStateChange whole function to this.

pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(SuperJumpEnabled[playerid] == 1)
    {
        if(newkeys & KEY_JUMP)
        {
            SuperJumpEnabled[playerid] = 0;
            GetPlayerVelocity(playerid, pX, pY, pZ);
            SetPlayerVelocity(playerid, pX,pY, pZ+5);
            SendClientMessage(playerid, COLOR_USE, "Super Jump De-Acticated");
            SetTimerEx("ResetJumping", 2500, false, "d" , playerid);
        }
        return 1;
    }
    return 0;
}
and change your timer function to

pawn Code:
public ResetJumping(playerid)
{
    IsJumping[playerid] = 1;
    SetTimerEx("ResetJumping", 2500, false, "d" , playerid);
    return 1;
}
Reply


Messages In This Thread
My Timer is not working +Rep+ - by Rudy_ - 26.04.2012, 13:24
Re: My Timer is not working +Rep+ - by Rudy_ - 26.04.2012, 13:59
Re: My Timer is not working +Rep+ - by SuperViper - 26.04.2012, 14:05
Re: My Timer is not working +Rep+ - by Rudy_ - 26.04.2012, 14:11
Re: My Timer is not working +Rep+ - by ViniBorn - 26.04.2012, 14:17
Re: My Timer is not working +Rep+ - by Rudy_ - 26.04.2012, 14:19
Re: My Timer is not working +Rep+ - by SuperViper - 26.04.2012, 14:21
Re: My Timer is not working +Rep+ - by ViniBorn - 26.04.2012, 14:23
Re: My Timer is not working +Rep+ - by Rudy_ - 26.04.2012, 14:30
Re: My Timer is not working +Rep+ - by SuperViper - 26.04.2012, 14:36

Forum Jump:


Users browsing this thread: 1 Guest(s)