[Help] Bleeding time - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Bleeding time (
/showthread.php?tid=290985)
[Help] Bleeding time -
freakshow - 17.10.2011
Код:
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
Re: [Help] Bleeding time -
AeroBlast - 17.10.2011
Where is this piece of code in your script?
Re: [Help] Bleeding time -
freakshow - 18.10.2011
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