Does if(TIMER_RUNNING[playerid]) detect if a timer is running?
#1

I've been really curious to see if this is an efficient way to see if a timer is active, or not. Because I'm using it under OnPlayerGiveDamage and it works fine for killing variables. However, when I used it for a splint system (I was detecting if the bandage timer was running, that way the player couldn't use a splint) it didn't work for detecting that.


Example:

pawn Код:
if(TIMER_BANDAGE[playerid])
{
SCM(pid,COLOR, "You can't use this with the bandage timer running");
return 1;

}
^ This code does not work, however:
pawn Код:
if(TIMER_FISH[damagedid] || TIMER_PICKUPLOOT[damagedid] || TIMER_COOKING[damagedid] || TIMER_FIRE[damagedid]
Seems to work fine.
Reply


Messages In This Thread
Does if(TIMER_RUNNING[playerid]) detect if a timer is running? - by rangerxxll - 30.10.2015, 03:52
Re: Does if(TIMER_RUNNING[playerid]) detect if a timer is running? - by PrO.GameR - 30.10.2015, 09:32
Re: Does if(TIMER_RUNNING[playerid]) detect if a timer is running? - by Kevln - 30.10.2015, 09:42
Re: Does if(TIMER_RUNNING[playerid]) detect if a timer is running? - by AbyssMorgan - 30.10.2015, 14:16

Forum Jump:


Users browsing this thread: 1 Guest(s)