TextdrawHIDE Timer
#1

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;
}
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)