09.09.2017, 10:40
I want the textdraws to hide when the timer reaches 30. In the code, all the statements are working correctly except
I have used SendClientMessage to debug the problem but every other line gets excecuted except the line above.
ShowCapturedTD(playerid); works fine (Rechecked by SendClientMessage too)
Heres my code:
PHP код:
HideRSCaptureTD(playerid);
ShowCapturedTD(playerid); works fine (Rechecked by SendClientMessage too)
Heres my code:
PHP код:
public GZCounter(playerid,GZName[])
{
new Counter[6];
if(!strcmp(GZName,"RS",true))
{
if(RSPaused == 0) RSTimer++;
format(Counter,6,"%d/30",RSTimer);
TextDrawSetString(GZCapturingRS2,Counter);
if(RSTimer == 30)
{
HideRSCaptureTD(playerid);
ShowCapturedTD(playerid);
RSTimer = 0;
KillTimer(GZTimerRS);
}
}
}
HideRSCaptureTD(playerid)
{
TextDrawHideForPlayer(playerid,GZCapturing0);
TextDrawHideForPlayer(playerid,GZCapturingRS1);
TextDrawHideForPlayer(playerid,GZCapturingRS2);
TextDrawHideForPlayer(playerid,GZPaused3);
SendClientMessage(playerid,white,"Hiding RS Capture TD");
return 1;
}