Kiedy pobieram aktualny czas funkcj? getRealTime to nie zwraca ona poprawnego czasu.
Czas sp??nia si? o 4 minuty i 40 sekund wzgl?dem rzeczywistego. Po wpisaniu komendy /time wy?wietla ona poprawn? godzin?.
Korzystam z hostingu, restart serwera nic nie pom?g?. W czym jest problem i sk?d ta rozbie?no???
Witam ot?? niedawno zacz??em bawi? si? z modelami i dzi? zrobi?em 1 taki. Jest dff jest txd jest col ale kolizja jest gdzie indziej ni? obiekt. Pomocy ! Jak to naprawi?? W 3ds Maxie zmieni? pozycje?
Witam, zrobi?em sobie system paliwa lecz zamiast odejmowa? to to odejmuje(dobrze) ale ju? po odj?ciu tworzy si? kropka, np posiadam 50% paliwa, i jad? i robi si?
49.9999444% paliwa, troch? to dziwne bo chcia?bym aby schodzi?o bez tych kropek.
Co tutaj jest ?le?
Witajcie, jak u?yje komendy /me w kodzie:
[lua]function akcjaME(player, cmd, ...)
local playername = getPlayerName(player)
local x, y, z = getElementPosition(player)
local dimension = getElementDimension(player)
local interior = getElementInterior(player)
playername = string.gsub(playername, "_", " ")
for k, gracze in ipairs(getElementsByType("player")) do
if getDistanceBetweenPoints3D(x, y, z, getElementPosition(gracze)) < 20 then
local graczeDim = getElementDimension(gracze)
local graczeInt = getElementInterior(gracze)
if (graczeDim==dimension) and (graczeInt==interior) then
outputChatBox("#6600ff* " .. playername .. " " .. table.concat({...}, " "), gracze, 255, 255, 255, true)
end
end
end
end
addCommandHandler("me", akcjaME)[/lua]
To zamiast funkcji akcjaME aktywuje si? chat lokalny:
[lua]function icchat(message)
cancelEvent()
local x, y, z = getElementPosition(source)
local playername = getPlayerName(source)
local dimension = getElementDimension(source)
local interior = getElementInterior(source)
for k, gracze in ipairs(getElementsByType("player")) do
if getDistanceBetweenPoints3D(x, y, z, getElementPosition(gracze)) < 20 then
local graczeDim = getElementDimension(gra...
Ot?? mam taki problem ?e m?j gamemod zu?ywa wi?cej procent rdzenia procesora ni? inne mapy. Napisa?em do hostingu, stwierdzili ?e to wina gamemoda lub jakiego? skryptu. Wie kto? jak naprawi? ten b??d
Hosting - servhost.pl