Change the color of a textdraw - 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: Change the color of a textdraw (
/showthread.php?tid=628238)
Change the color of a textdraw -
AndreiWow - 07.02.2017
PHP код:
else if(playertextid == testpaper[8][playerid])
{
if(TestAlreadyClicked[0][playerid] == 0)
{
PlayerTextDrawColor(playerid, testpaper[8][playerid], COLOR_GREEN);
TestAlreadyClicked[0][playerid] = 1;
}
}
The code from above is working but the color of the textdraw is not chaning, any idea why?
Re: Change the color of a textdraw -
Injury - 07.02.2017
PlayerTextDrawShow((playerid, testpaper[8][playerid]);
Re: Change the color of a textdraw -
renatog - 07.02.2017
When you make changes in a textdraw you need to show it again.
Re: Change the color of a textdraw -
AndreiWow - 08.02.2017
Quote:
Originally Posted by renatog
When you make changes in a textdraw you need to show it again.
|
Thanks.