12.08.2010, 11:19
I just made a Capture system but i got several problems. One is when the timer is finished it still aint destroyed (Like the timer keeps continuing to -1:99 which i dont want) and Secondly One main textdraw is being hidden. I'm not very sure whats wrong.
heres my code:
Aww wtf is wrong Help me out pls
heres my code:
pawn Код:
forward BombCounterAtCP1();
public BombCounterAtCP1()
{
BombCountAtCP1 --;
new tmp[256];
TextDrawDestroy(Text:CCP1);
format(tmp, sizeof tmp, "~r~The bomb is exploding in:~y~~n~%s", TimeConvert(BombCountAtCP1)
CCP1 = TextDrawCreate(234.0, 361.0, tmp);
TextDrawSetShadow(Text:CCP1, 0);
TextDrawSetOutline(Text:CCP1, 1);
TextDrawShowForAll(Text:CCP1);
if (IsDefusedAtCP1) {
TextDrawDestroy(Text:CCP1);
}
else if (BombCountAtCP1 == 0) {
TextDrawDestroy(Text:CCP1);
}
}