Textdraw mindfu**
#1

HI all. Can someone tell me why when I clicking on a textdraw, colored boxes sometimes hides from screen, sometimes shows. ShowFishingTextDraws(playerid); I'm using just once, but when I click on the one of this 4 boxes they're just hides from screen and I don't understand why.. Photos: http://imgur.com/a/XqMsZ

Код HTML:
stock ShowFishingTextDraws(playerid)
{
	for(new s = 0; s < 3; s ++) 	TextDrawShowForPlayer(playerid, zvejybos_sistema_g[s]);
	for(new s = 0; s < 11; s ++) 	PlayerTextDrawShow(playerid, zvejybos_sistema_p[playerid][s]);

	SelectTextDraw(playerid, 0xBEBEBE80);
}

stock HideFishingTextDraws(playerid)
{
	for(new s = 0; s < 3; s ++) 	TextDrawHideForPlayer(playerid, zvejybos_sistema_g[s]);
	for(new s = 0; s < 11; s ++) 	PlayerTextDrawHide(playerid, zvejybos_sistema_p[playerid][s]);

	CancelSelectTextDraw(playerid);
}
Код HTML:
if(playertextid == zvejybos_sistema_p[playerid][7])
{
	if(FS[playerid][FishingProgress] < 100.0)
	{
		if(FS[playerid][FishingColor] == GELTONAS_MYGTUKAS)
		{
			FS[playerid][FishingProgress] += 10.0 + randomfloat(10.0);
		}
		else
		{
			SendClientMessage(playerid, -1, ""COL_INFO"••• {ffffff}Neteisingai!");
		}

		UpdateFishingBar(playerid);
		SetRandomColor 	(playerid);
	}

	return 1;
}
Reply
#2

bump
Reply
#3

Can you show the "UpdateFishingBar()"?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)