Skripta koju koristim: Moja
Detaljan opis problema: Nece da sakrije TD nakon 3 sec a pokusao sam sve! :| ako sam nesto propustio volio bih da objasnite!
Dio skripte:
Znaci na vrhu imam ono definirat TD taj i ono za spree to vam necu pokazat nepotrebno!
[pawn] Spree = TextDrawCreate(431.666778, 319.407531, "bla je sada na bla kill spree");
TextDrawLetterSize(Spree, 0.209444, 1.485926);
TextDrawAlignment(Spree, 1);
TextDrawColor(Spree, -1);
TextDrawSetShadow(Spree, 0);
TextDrawSetOutline(Spree, 0);
TextDrawBackgroundColor(Spree, 51);
TextDrawFont(Spree, 2);
TextDrawSetProportional(Spree, 1);[/pawn]
[pawn]if(spree[killerid] == 3)
{
new string[128];
new pname[MAX_PLAYER_NAME];
GetPlayerName(killerid, pname, sizeof(pname));
format(string, sizeof(string), "~r~%s ~w~je sada na ~r~3 ~w~kill spree", pname);
TextDrawHideForAll(Spree);
TextDrawSetString(Spree, string);
TextDrawShowForAll(Spree);
SetTimer("TxtReset", 3000, 0);
}[/pawn]
[pawn]forward Txtreset();
public Txtreset()
{
TextDrawHideForAll(Spree);
return 1;
}[/pawn]
Neke slike/video za lakse dobivanje pomoci(neobavezno):
napravi debug za ovo if(spree[killerid] == 3)
{
new string[128];
new pname[MAX_PLAYER_NAME];
GetPlayerName(killerid, pname, sizeof(pname));
format(string, sizeof(string), "~r~%s ~w~je sada na ~r~3 ~w~kill spree", pname);
TextDrawHideForAll(Spree);
TextDrawSetString(Spree, string);
TextDrawShowForAll(Spree);
SetTimer("TxtReset", 3000, 0);
}
i vidi daje li output
Ne kuzim lol ?
if(spree[killerid] == 3)
{
print("spree == 3 pozvan");
new string[128];
new pname[MAX_PLAYER_NAME];
GetPlayerName(killerid, pname, sizeof(pname));
format(string, sizeof(string), "~r~%s ~w~je sada na ~r~3 ~w~kill spree", pname);
print("string formatiran");
TextDrawHideForAll(Spree); print("hide");
TextDrawSetString(Spree, string); print("set");
TextDrawShowForAll(Spree); print("show");
SetTimer("TxtReset", 3000, 0); print("timer");
}
Citat: ☢ χÏ...ηdÑ"Ñ_SkillArena ☢ poslato Avgust 08, 2016, 20:07:19 POSLE PODNE
if(spree[killerid] == 3)
{
print("spree == 3 pozvan");
new string[128];
new pname[MAX_PLAYER_NAME];
GetPlayerName(killerid, pname, sizeof(pname));
format(string, sizeof(string), "~r~%s ~w~je sada na ~r~3 ~w~kill spree", pname);
print("string formatiran");
TextDrawHideForAll(Spree); print("hide");
TextDrawSetString(Spree, string); print("set");
TextDrawShowForAll(Spree); print("show");
SetTimer("TxtReset", 3000, 0); print("timer");
}
Nista ovo! nema veze ;) RIJESIO SAM NEKAKO! MOZE LOCK