SA-MP Forums Archive
[?]TextDraws not destroying.[RESOLVED] - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [?]TextDraws not destroying.[RESOLVED] (/showthread.php?tid=72704)



[?]TextDraws not destroying.[RESOLVED] - dafel2 - 10.04.2009

Код:
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


Re: [?]TextDraws not destroying. - Rks25 - 10.04.2009

try TextDrawHideForPlayer.


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

just do:

forward destroy();

public destroy()
{
}

And what i said above.


Re: [?]TextDraws not destroying. - dafel2 - 10.04.2009

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 :/


Re: [?]TextDraws not destroying. - Rks25 - 10.04.2009

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

DOn't forget to change the forward().


Re: [?]TextDraws not destroying. - MPKaboose - 10.04.2009

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



Re: [?]TextDraws not destroying. - dafel2 - 10.04.2009

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