Witam, jak zrobi? aby licznik by? widziany przez kierowc? i pasa?er?w pojazdu?
Aktualnie jest widziany tylko przez kierowc?.
Pozdrawiam!
c.lua
[lua]local x, y = guiGetScreenSize()
show_speed = false
local smothedRotation = 0
local indikator_1 = "images/1.png"
local indikator_2 = "images/2.png"
local indikator_3 = "images/3.png"
local indikator_4 = "images/4.png"
local indikator_5 = "images/5.png"
local indikator_6 = "images/6.png"
local indikator_7 = "images/7.png"
local indikator_8 = "images/8.png"
alpha = 255
function fons ()
if show_speed == false then
local veh = getPedOccupiedVehicle(getLocalPlayer())
if not veh or getVehicleOccupant ( veh ) ~= localPlayer then return true end
if not driveDistance then lastTick = getTickCount() driveDistance = getElementData ( veh, "driveDistance" ) or 0 end
local vehs = getElementSpeed(getPedOccupiedVehicle(getLocalPlayer()), "kmh")
local fuel = getElementData(getPedOccupiedVehicle ( localPlayer ), "vehicle:fuel" ) or 0
local rot = math.floor(((270/9800)* getVehicleRPM(getPedOccupiedVehicle(getLocalPlayer()))) + 0.5)
local actualspeed = getElementSpeed (veh, 1)
local kmh = math.floor(actualspeed)
local num = getElementData(veh,"vehicle:mileage") or 0
local mileage = ""..math.floor(num)
repeat mileage = "0"..mileage until #...
Witam, mam pytanie czy da si? na?o?y? np. 2 skiny na m4, za???my ?e team1 ma skin zielonego m4, a team2 niebieskiego m4. Dok?adnie chodzi oto ?e chce mie? 2 skiny na m4.
Witam, posiadam problem z serwerem, mianowicie na serwerze mo?e przebywa? tylko jedna osoba.
Ka?dej kolejnej kt?ra wejdzie nie wy?wietla si? okno logowania i nie ma ?adnych funkcji gamemoda, dodatkowo po wej?ciu na serwer tej "drugiej" osoby w logach zostaj? b??dy.
[code][16:40:06] [join] John_Smith has joined the server (1:89.72.25.147)
[16:40:06] [debug] Run time error 4: "Array index out of bounds"
[16:40:06] [debug] Accessing element at index 1 past array upper bound 0
[16:40:06] [debug] AMX backtrace:
[16:40:06] [debug] #0 0000f144 in public SSCANF_OnPlayerConnect (0x00000001) from rp.amx
[16:40:06] [debug] #1 native CallLocalFunction () [080dbf60] from samp03svr
[16:40:06] [debug] #2 00000600 in public OnPlayerConnect (0x00000001) from rp.amx
[16:40:06] [debug] Run time error 4: "Array index out of bounds"
[16:40:06] [debug] Accessing element at index 1 past array upper bound 0
[16:40:06] [debug] AMX backtrace:
[16:40:06] [debug] #0 0002cf5c in public OnPlayerRequestClass (0x00000001, 0x00000000) from rp.amx
[16:40:11] [debug] Run time error 4: "Array index out of bounds"
[16:40:11] [debug] Accessing element at index 1 past array upper bound 0
[16:40:11] [debug] AMX backtrace:
[16:40:11] [debug] #0 0002cf5c in public OnPlayerRequestClass (0x00000001, 0x00000000) from rp.amx
[16:40:11] [debug] Run time error 4: "Array index out of bounds"
[16:40:11] [debug] Accessing element at index 1 past array u...