td not hiding when kill spree - 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: td not hiding when kill spree (
/showthread.php?tid=658342)
td not hiding when kill spree -
severance - 02.09.2018
PHP код:
if(Killed[killerid] == 2){
new string[150];
format(string, sizeof(string), "NICE!");
PlayerTextDrawSetString(killerid, rname[killerid], string);
PlayerTextDrawShow(killerid, rname[killerid]);
PlayerTextDrawShow(killerid, arrow1[killerid]);
PlayerTextDrawShow(killerid, arrow2[killerid]);
SetTimer("hidername", 4000, 0);}
PHP код:
forward hidername(killerid);
public hidername(killerid)
{
PlayerTextDrawHide(killerid, rname[killerid]);
PlayerTextDrawHide(killerid, arrow1[killerid]);
PlayerTextDrawHide(killerid, arrow2[killerid]);
return 1;
}
Re: td not hiding when kill spree -
DeMoo - 02.09.2018
PHP код:
SetTimerEx("hidername", 4000, false, "i", killerid);
Re: td not hiding when kill spree -
Lokii - 02.09.2018
WTF??
PHP код:
new string[150];
format(string, sizeof(string), "NICE!");
PlayerTextDrawSetString(killerid, rname[killerid], string);
no need format, also why did you use 150 cells for "NICE!" it only need 6 cells!
You could simply do that:
PHP код:
PlayerTextDrawSetString(killerid, rname[killerid], "NICE!");
Re: td not hiding when kill spree -
DeMoo - 02.09.2018
he's newbie maybe