PDA

View Full Version : Textdraw not hiding


div
22/06/2018, 11:13 AM
Hello, I made a robbery textdraw.. It is shown successfully, I made it using Timers, first timer will show some part, and it will update slowly.. But the problem is, when the robbery is finished, ALL THE TEXTDRAWS HIDE except the FIRST THREE..


So, i tried this

TextDrawHideForPlayer(playerid, Robbery[playerid][1]);
TextDrawHideForPlayer(playerid, Robbery[playerid][1]);
TextDrawHideForPlayer(playerid, Robbery[playerid][2]);
TextDrawHideForPlayer(playerid, Robbery[playerid][3]);
TextDrawHideForPlayer(playerid, Robbery[playerid][4]);
TextDrawHideForPlayer(playerid, Robbery[playerid][5]);
TextDrawHideForPlayer(playerid, Robbery[playerid][6]);
TextDrawHideForPlayer(playerid, Robbery[playerid][7]);



It says TAG MISMATCH :/

DeathCore
22/06/2018, 11:53 AM
Try this:

new Text:Robbery[10];
for(new i=1;i<8;i++)TextDrawHideForPlayer(playerid, Robbery[i]);

Lokii
22/06/2018, 11:56 AM
i think you use playertext thats why


for(new i = 0; i < 8; i++)
{
PlayerTextDrawHide(playerid, Robbery[playerid][i]);
}

div
22/06/2018, 12:17 PM
thanks both :D