[?]TextDraws not destroying.[RESOLVED]
#1

Код:
forward destroy(playerid);
under onplayerspawn
Код:
SetTimer("destroy", 5000, 0);
Код:
public destroy(playerid)
{
 TextDrawDestroy(Textdraw0);
 TextDrawDestroy(Textdraw1);
TextDrawDestroy(Textdraw2);
TextDrawDestroy(Textdraw4);
TextDrawDestroy(Textdraw5);
TextDrawDestroy(Textdraw6);
TextDrawDestroy(Textdraw8);
TextDrawDestroy(Textdraw9);
TextDrawDestroy(Textdraw10);
TextDrawDestroy(Textdraw11);
TextDrawDestroy(Textdraw12);
   return 1;
}
No errors. When i go ingame it doesnt destroy it
Reply
#2

try TextDrawHideForPlayer.


And note, for what are you using (playerid) argument.

just do:

forward destroy();

public destroy()
{
}

And what i said above.
Reply
#3

Quote:
Originally Posted by Rk_
try TextDrawHideForPlayer.


And note, for what are you using (playerid) argument.

just do:

forward destroy();

public destroy()
{
}

And what i said above.
Код:
 : error 017: undefined symbol "playerid"
: error 017: undefined symbol "playerid"
 : error 017: undefined symbol "playerid"
 : error 017: undefined symbol "playerid"
 : error 017: undefined symbol "playerid"
: error 017: undefined symbol "playerid"
: error 017: undefined symbol "playerid"
 : error 017: undefined symbol "playerid"
 : error 017: undefined symbol "playerid"
: error 017: undefined symbol "playerid"
Код:
public destroy()
{
 TextDrawHideForPlayer(playerid, Textdraw0);
  TextDrawHideForPlayer(playerid, Textdraw1);
  TextDrawHideForPlayer(playerid, Textdraw2);

  TextDrawHideForPlayer(playerid, Textdraw4);
  TextDrawHideForPlayer(playerid, Textdraw5);
  TextDrawHideForPlayer(playerid, Textdraw6);

  TextDrawHideForPlayer(playerid, Textdraw8);
  TextDrawHideForPlayer(playerid, Textdraw9);
  TextDrawHideForPlayer(playerid, Textdraw10);
  TextDrawHideForPlayer(playerid, Textdraw11);
  TextDrawHideForPlayer(playerid, Textdraw12);
  }
now it shows those errors :/
Reply
#4

excuse me, use the (playerid) argument again in public function.

DOn't forget to change the forward().
Reply
#5

pawn Код:
forward destroy(playerid);
public destroy(playerid)
{
  return 1;
}
Reply
#6

Quote:
Originally Posted by Rk_
excuse me, use the (playerid) argument again in public function.

DOn't forget to change the forward().
oh thanks now it works
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)