Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: zła
1. getRealTime - zła wartość
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???
2. Zła kolizja w modelu
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?
3. zła pozycja w getCursorPosition
Wiecie mo?e czemu getCursorPosition() pokazuje z?? pozycja na mapie ? Mo?e jest jaki? spos?b aby to naprawi??
4. Komenda zła
Witam chcia?bym zrobi? komende na tworzenie pojazdu i jak gracz wychodzi usuni?cie go ale tylko jego.
5. Zła wartość paliwa,
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?

    local vx,vy,vz getElementVelocity(pojazd)
local spd = ((vx^2+vy^2+vz^2)^(0.5)/200)
6. Zła funkcja
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)

playername = string.gsub(playername, "_", " ")
message = string.gsub(message, "#%x%x%x%x%x%x", "")

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...
7. [INNE] Kłopot z obiektami, streamer, zła wersja ? Pomóżcie.
Witam , to co mnie martwi, zaznaczy?em na czerwono:
[b]O co chodzi ? Pozdrawiam.[/b]
Moje GG: 6669185 Z g?ry dzi?kuj? za pomoc, :piwo:

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3e, (C)2005-2012 SA-MP Team

[18:41]
[18:41] Server Plugins
[18:41] --------------
[18:41] Loading plugin: streamer
[18:41]

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[18:41] Loaded.
[18:41] Loading plugin: y_files
[18:41]

[18:41] ===============================

[18:41] y_files loaded

[18:41] (c) 2010 Alex "Y_Less" Cole

[18:41] ===============================

[18:41] Loaded.
[18:41] Loading plugin: Whirlpool
[18:41]
[18:41] ==================
[18:41]
[18:41] Whirlpool loaded
[18:41]
[18:41] ==================
[18:41]
[18:41] Loaded.
[18:41] Loading plugin: GeoIP_Plugin
[18:41] GeoIP_Plugin got loaded.
[18:41] Loaded.
[18:41] Loaded 4 plugins.

[18:41]
[18:41] Filterscripts
[18:41] ---------------
[18:41] Loading filterscript '[UG]CentreAdminSystem.amx'...
[18:41]
___________________________________________________
[18:41]
[18:41] UDC V9
[18:41] ---------------
[18:41] UDC Administration System
[18:41] ___________________________________________________

[18:41] -> Loading...
[18:41]
-Current Config...
8. [DM] Zła optymalizacja ??
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