[Help] Bleeding time
#1

Код:
if(PlayerIsBleeding[i] == 1)
{
        GetPlayerHealth(i, PHealth);
	SetPlayerHealth(i, PHealth-1);
	QBleedT[i] += 1;
	SendClientMessage(i, COLOR_RED, "Bleeding...");
	if(QBleedT[i] >= 3)
	{
		QBleedT[i] = 0;
		PlayerIsBleeding[i] = 0;
		SendClientMessage(i, COLOR_RED, "Bleeding Stopped");
	}
}
The second if statement never fires off. I was wondering if anyone could tell me why. No errors / Warnings
and this peice of code is found under the one second timer
Reply
#2

Where is this piece of code in your script?
Reply
#3

Its found in a timer that is set to repeat every second, but it just keeps going and doesnt stop after the third 'ping' for bleeding ( ex. QBleedT[i] )

EDIT: Fixed the situation, Thankyou
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)