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: lecz
1. Cały czas wyskakuje DB3 lecz skrypt działa
DB3: https://imgur.com/a/qq1gRjf



[code]local light = dxCreateTexture("files/light.png", "argb")
local arrow = dxCreateTexture("img/arrow.png", "argb")
local anim_type = "foward"
local distance = 50
local animTime = 0

addEventHandler("onClientPreRender", root,
function()
for i, v in ipairs(getElementsByType("marker")) do
if getElementData(v, "custom_marker") then
local x, y, z = getElementPosition(v)
local x2, y2, z2 = getElementPosition(localPlayer)
local r, g, b, a = getMarkerColor(v)
local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2)
if (distanceBetweenPoints < distance) then
local size = getMarkerSize(v)
if anim_type == "back" then
local progress = (getTickCount() - animTime) / 1500
position = math.floor(interpolateBetween(0, 0, 0, 200, 0, 0, progress, "InQuad"))
if(progress > 1) then
anim_type = "foward"
animTime = getTickCount()
end
else
local progress = (getTickCount() - animTime) / 1500
position = math.floor(interpolateBetween(200, 0, 0, 0, 0, 0, progress, "OutQuad"))
if(progress > 1) then
anim_type = "back"
animTime = getTickCount()
end
end

dxDrawMaterialLine3D(x, y, z+1+1+(position/1000), x, y, z+1+(position/1000), arrow, 1, tocolor(...
2. [INNE] MySQL czyta pliki lecz ich nie zapisuje
Tak jak w tempacie. pod?aczy?em serwer pod baze db4free.net i podczas rejestracji na serwerze nie profil gracza nie zapisuje sie na bazie danych przy mapce by?o kilka starych graczy wiec zmieni?em nick na gracza z listy i wyskoczy?o mi zeby sie zalogowa? czyli jest po??czenie z bana i czyta mi pliki z niej ale nie chce ich zapisywa?. z g?ry dzi?kuje ;)

P.S mapka to P4S :)
3. [INNE] Wykryty erro,r lecz co dalej
Witam.

Wiem co jest przyczyn? bugu (sprawdzi?em za pomoc? crashdetecta).

Mam taki kod:
Kod:


for(new i; i<MAX_PLAYERS; i++)
{
VehicleModel[i] = GetVehicleModel(GetPlayerVehicleID(i));
VehicleModel[i] = VehicleModel[i]-400;
format(strr, sizeof(strr), "Nazwa pojazdu:%s", VehicleNames[VehicleModel[i]]);
}


I kod b??du
Kod:


[19] [debug] Run time error 4: "Array index out of bounds"
[19] [debug] Accessing element at negative index -400
[19] [debug] AMX backtrace:
[19] [debug] #0 00010cdc in public TDPojazd () from mm.amx



Co do jasnej ciasnej jest nie tak
4. Serwer SA-MP 03c - nie można wejść lecz pingi normalnie idą.
Witam!

Mam problem z serwerem Sa-MP 03c

a mianowicie nie mog? na niego wej??.. - wersja gry 03c wersja serwera 03c..

Pingi id? wszystko ?adnie lecz jak chc? gra? to jest Server Dind,n respording ...

Dodam ?e porty s? przekierowane - Udp ustawiony na 2011


Niby dzia?a lecz wej?? si? nie da..

HostName: test
Address: 212.xxx.158.xxx:2011
Players: 0 / 30
Ping: 32
Mode: PGDS v 1.0
Map: San Andreas


Serwer CFG:

Kod:


echo Executing Server Config...
lanmode 0
rcon_password ********
maxplayers 30
port 2011
hostname test
gamemode0 ptr 1
filterscripts bezludnawyspatp bostextdraw5 garazbosbrama2 garazbostp komendatpdoparkudm placdmPRO tpdobosa rewrw AS salon reklama
plugins sscanf.so streamer.so
announce 1
query 1
weburl dracopc.com
maxnpc 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000






Co jest nie tak?

Mo?e jeszcze inny port musz? przekierowa? ?

Prosz? o pomoc!