Drugs problem
#1

Removed.
Reply
#2

Bump
Reply
#3

there should be something wrong with the timer for the drugs effect. Try to shut that down to test if the bug still excists
Reply
#4

Removed.
Reply
#5

No, he meant inside of the timer. Show us the function "DrugsE" (look for "public DrugsE")
Reply
#6

DrugsE is shown already.

swap this
pawn Код:
DrugTimer[playerid] = SetTimerEx("DrugsE", 1300, 1, "ii", playerid, amount);
with this
pawn Код:
DrugTimer[playerid] = SetTimerEx("DrugsE", 1300, 0, "ii", playerid, amount);
should do the trick, you had it on repeating.
Reply
#7

DrugsE is not already shown. The timer set to play that function is. But he probably doesn't have a check to see if the player's health is 100 or higher, and to then reset it back to 100.
Reply
#8

Quote:
Originally Posted by Hernando
Посмотреть сообщение
DrugsE is not already shown. The timer set to play that function is. But he probably doesn't have a check to see if the player's health is 100 or higher, and to then reset it back to 100.
IT IS SHOWN. do you bother scrolling down his code?

pawn Код:
public DrugsE(playerid,amount)
{
    new Float:hZ;
    busyAnim[playerid] = false;
    GetPlayerHealth(playerid,hZ);
    Deffect[playerid]++;
    SetPlayerHealth(playerid,hZ+2);
    if(hZ > 100.0) SetPlayerHealth(playerid, 100.0);
    if(Deffect[playerid] >= amount) return KillTimer(DrugTimer[playerid]);
    return 1;
}
Reply
#9

Removed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)