Cze??, mam problemik Ot?? gdy pr?buj? odczyta? tekst to nic si? nie pojawia ;/
[img]https://i.imgur.com/0NmFysO.jpg[/img]
Kawa?ek kodu:
[lua]addEvent("RescuePanel_client",true)
addEventHandler("RescuePanel_client",resourceRoot,function(cmd,d)
if cmd=="showWindow" then
if d then
if panelEnabled then return end
addEventHandler("onClientRender",root,RescuePanel)
addEventHandler("onClientClick",root,onClientClick)
addEventHandler("onClientKey",root,onClientKey)
panelEnabled=true
showCursor(true)
guiSetInputMode("no_binds")
setElementData(localPlayer,"3dtext_status",false)
triggerServerEvent("RescuePanel",resourceRoot,"odswiezTabeleStatusowPR")
elseif not d then
removeEventHandler("onClientRender",root,RescuePanel)
removeEventHandler("onClientClick",root,onClientClick)
removeEventHandler("onClientKey",root,onClientKey)
panelEnabled=false
showCursor(false)
guiSetInputMode("allow_binds")
setElementData(localPlayer,"3dtext_status",true)
end
elseif cmd=="odswiezTabeleStatusowPR" then
for i,v in ipairs(d) do
for k,p in ipairs(btn) do
if v.veh==p.veh then p.status=v.status end
end
end
elseif cmd=="pobierzAktyZgonow" then
for i,v in ipairs(d) do table.insert(btn,{typ="lista",id=i,dbid=v.id,text={v.dat...
Jest to komputer OSP, aczkolwiek, gdy podchodz? w blip, aby w??czy? SYRENE/ALARM OSP, to w??cza si? ona, lecz si? zacina i wi?kszo?ci nie s?ycha?, czy wie kto? jak to zrobi?, zeby p?ynnie t? syrene bylo slychac, bez zacinania?
Witam, przerobi?em komputer policyjny z NewPlace na ogrpg. Gdy wpisuje id pojazdu lub gracza w komputer na komendzie to wyskakuje b??d w DB3:
GDY WPISUJE ID POJAZDU:
[code]WARNING: [db]/ogrpg-db/s_db.lua:27: dbPoll failed; Unknown column 'ownerPlayer' in 'field list' [/code]
GDY WPISUJE ID/NICK GRACZA:
[code[WARNING: [db]/ogrpg-db/s_db.lua:27: dbPoll failed; You have an error in your SQL syntax; check the manual that correspondes to your MariaDB server versiopn for the right syntax to use near 'FROM ogrpg_users WHERE id='1'at line 1 [/code]
Oto ca?y skrypt, serverside :
[lua]-- By madvalue <[email protected]>
local locations = {
{2269.24, 2448.45, 296.59, int=0, dim=16},
};
addEventHandler("onResourceStart", resourceRoot, function ()
for k,v in ipairs(locations) do
local marker = createMarker(v[1], v[2], v[3]-0.98, "cylinder", 1, 22, 168, 125, 100);
setElementInterior(marker, v.int);
setElementDimension(marker, v.dim);
addEventHandler("onColShapeHit", sphere, hitMDC);
end
end);
function hitMDC(hitElement, matchDimensions)
if getElementType(hitElement) ~= "player" or isPedInVehicle(hitElement) or not matchDimensions then return false; end
if getElementData(hitElement, "frakcja:sluzba") ~= "LSPD" then
outputChatBox("Na ek...
Witam chcia?bym by kto? naprawi? ten ten skrypt http://gtao.pl/93386.htm .Jest to skrypt na komputer osp ale jest jeden b??d.Po w??czeniu syreny s?yszy j? tylko osoba kt?ra j? w??czy?a.Wi?c prosz? o naprawienie tego
PS. Nagradzam
Witam. Ju? dawno temu pisa?em podobny temat, chodzi o to, aby marker w??cza? si? tylko w wyznaczonej pozycji, ?eby nie w??cza? si? jak kto? leci samolotem lub stoi na parterze. Bodaj?e Tey poda? mi kod: