SA-MP Forums Archive
TextdrawHIDE Timer - 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: TextdrawHIDE Timer (/showthread.php?tid=523354)



TextdrawHIDE Timer - [Cali]ChrOnic_T - 01.07.2014

I have this in OnPlayerDeath because i want it to show for the KILLERID and its a playertextdraw so i want to make it hide in 1 second. but everytime i do it. it wont go away.

The textdraw:


pawn Код:
public OnPlayerDeath(playerid, killerid , reason)
{
      deathhit[killerid] = CreatePlayerTextDraw(killerid, 2.000000, 448.916687, "usebox");
      PlayerTextDrawLetterSize(killerid, deathhit[killerid], 0.000000, -50.029632);
      PlayerTextDrawTextSize(killerid, deathhit[killerid], 637.375000, 0.000000);
      PlayerTextDrawAlignment(killerid, deathhit[killerid], 1);
      PlayerTextDrawColor(killerid, deathhit[killerid], 0);
      PlayerTextDrawUseBox(killerid, deathhit[killerid], true);
      PlayerTextDrawBoxColor(killerid, deathhit[killerid], -1086308152);
      PlayerTextDrawSetShadow(killerid, deathhit[killerid], 0);
      PlayerTextDrawSetOutline(killerid, deathhit[killerid], 0);
      PlayerTextDrawFont(killerid, deathhit[killerid], 0);
   
      PlayerTextDrawShow(killerid,deathhit[killerid]);
      SetTimer("RemoveDeathText",1000, false);
      return 1;
}

forward RemoveDeathText(killerid);
public RemvoeDeathText(killerid)
{
   PlayerTextDrawHide(killerid,deathhit[killerid]);
   return 1;
}



Re: TextdrawHIDE Timer - Timeless - 01.07.2014

Take this: public RemvoeDeathText(killerid)

Replace With: Public RemoveDeathText(killerid)
you were forwarding a public function that wasn't there so it won't work