3dlabel doesnt show
#3

Does this even compile
Код:
for(new i=0; i<MAX_PLAYERS; i++)
    {
	    new PausedSeconds = gettime()-PauseTime[i], string[50];
		if(PausedSeconds > 2) // 5
        if(PausedSeconds > 60) // check if it's above 1 minute.
        {
            format(string, sizeof(string), ""COL_YELLOW"Paused for (%d) minutes\n|\nV\n", SecondsToMinutes(PausedSeconds));
		    Update3DTextLabelText(masklabel[i], GREY, string);
		    masklabel[i] = Create3DTextLabel(""COL_YELLOW"Paused for (%d) minutes\n|\nV\n", GREY, -1.0, -1.0, -1.0, -1.0, 0, SecondsToMinutes(PausedSeconds));
		    Attach3DTextLabelToPlayer(masklabel[i], i, 0.0, 0.0, 0.7);
        }
        else if(PausedSeconds < 60 && PausedSeconds > 0) // checks if it's below 1 minute but above 0 seconds.
        {
            format(string, sizeof(string), ""COL_YELLOW"Paused for (%d) seconds\n|\nV\n", PausedSeconds);
		    Update3DTextLabelText(masklabel[i], GREY, string);
		    masklabel[i] = Create3DTextLabel(""COL_YELLOW"Paused for (%d) seconds\n|\nV\n", GREY, -1.0, -1.0, -1.0, -1.0, 0, PausedSeconds);
		    Attach3DTextLabelToPlayer(masklabel[i], i, 0.0, 0.0, 0.7);
        }
	}
That highlighted part doesn't have a starting brace.
Reply


Messages In This Thread
3dlabel doesnt show - by MayaEU - 15.07.2016, 21:30
Re: 3dlabel doesnt show - by oMa37 - 15.07.2016, 22:16
Re: 3dlabel doesnt show - by Gammix - 15.07.2016, 22:51
Re: 3dlabel doesnt show - by Luicy. - 15.07.2016, 23:30
Re: 3dlabel doesnt show - by MayaEU - 16.07.2016, 06:25

Forum Jump:


Users browsing this thread: 1 Guest(s)