Witam, zn?w przychodz? z pytaniem czemu nie dzia?a mi totalkills ?
Mam w skrypcie zrobione zab?jstwo jak np. na jednym ?yciu zabije osobe to wyswietla mi sie to ale niestety nie dziala mi to, ?e zapisuje do totalkills mi tego ;/
Nie wywala bledow w debugscripcie o dziwo. A wiec wytlumacze ci o co chodzi:
Mam scoreboard i dodaje do niego tabele z totalkills, totaldead i Kill and dead ratio
scoreboardColumns = {
{ name = "Gracze", width = 200, data = function (element) return getPlayerName ( element ) end },
{ name = "Zab?jstwa", width = 100, data = function (element) return ( getElementData ( element, "murders" ) or 0 ) end },
{ name = "Wszystkie zab?jstwa", width = 100, data = function (element) return ( getElementData ( element, "totalkillsdeaths.Kills" ) or 0 ) end },
{ name = "Zgony", width = 80, data = function (element) return getElementData ( element, "Deaths" ) or 0 end },
{ name = "Zabite Zombie", width = 80, data = function (element) return ( getElementData ( element, "zombieskilled" ) or 0 ) end },
{ name = "Czas ?ycia", width = 80, data = function (element) return formatTimeFromMinutes(getElementData ( element, "alivetime" ) or 1 ) end },
{ name = "Grupa", width = 150, data = function (element) return ( getElementData ( element, "gang" ) or "Brak" ) end },
--{ name = "KDr", width = 80, data = function (element) return getElementData ( element, "Ratio" ) or 0 end },
}
murders
odpowiada za kille przy jednym ?yciu (chodzi o to, ?e je?li zabijesz 4 osoby to masz tutaj liczbe 4, ale je?li zginiesz to resetuje sie) a mi chodzi o total kills wi?c nie chce zeby sie resetowa?o i chce zeby sie to zapisywalo.
A linijki konkretnej nie wska?e ci, bo ja pisz?c skrypt niestety ?le jak?? z danych wpisalem i co? nie dzia?a mi. Ale g??wnie jest to:
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach