Textdraw mindfu** - 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: Textdraw mindfu** (
/showthread.php?tid=628307)
Textdraw mindfu** -
rOps - 08.02.2017
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;
}
Re: Textdraw mindfu** -
rOps - 09.02.2017
bump
Re: Textdraw mindfu** -
Mic_H - 09.02.2017
Can you show the "UpdateFishingBar()"?