Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2020-03-30, 00:37


Vander0832

Mapper/Grafik






Wiek: 28
Na forum: 3644 dni
Posty: 52
Nick w MP: Vanderek

Piwa: 1105

Respekt: 55,3

Kto? wie jak poradzi? sobie z telefonem i numerami alarmowymi ?eby dzia?a?y?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-03-30, 01:02


mixLoLmix2

Programista






Wiek: 35
Na forum: 4113 dni
Posty: 454
Nick w MP: TomeQmix

Piwa: 1915

Respekt: 47,3

Podaj kod oraz w czym masz konkretnie problem.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-03-30, 11:44


Vander0832

Mapper/Grafik






Wiek: 28
Na forum: 3644 dni
Posty: 52
Nick w MP: Vanderek

Piwa: 1105

Respekt: 55,3

Problem w tym, ?e w kodzie jest wszystko git, ale nie chce odpowiada? na to jak napiszemy na chacie

Kod:

elseif callingPhoneNumber == 311 then
if startingCall then
outputChatBox("Halo tu Operator Kenny, prosze poda? lokalizacje.", callingElement)
exports.anticheat:changeProtectedElementDataEx(callingElement, "callprogress", 1, false)
else
if (callprogress==1) then -- Requesting the location
exports.anticheat:changeProtectedElementDataEx(callingElement, "call.location", message, false)
exports.anticheat:changeProtectedElementDataEx(callingElement, "callprogress", 2, false)
outputChatBox("Czy mo?esz opisa? pow?d Twojego po??czenia?", callingElement)
elseif (callprogress==2) then -- Requesting the situation
outputChatBox("Dzi?kujemy za rozmow?, wys?ali?my jednostk? do Twojej lokalizacji.", callingElement)
local location = getElementData(callingElement, "call.location")

local affectedElements = { }

for key, value in ipairs( getPlayersInTeam( getTeamFromName( "San Andreas State Sheriff" ) ) ) do
for _, itemRow in ipairs(exports['item-system']:getItems(value)) do
local setIn = false
if (not setIn) and (itemRow[1] == 6 and itemRow[2] > 0) then
table.insert(affectedElements, value)
setIn = true
break
end
end
end

for key, value in ipairs( getPlayersInTeam( getTeamFromName( "San Andreas State Sheriff" ) ) ) do
outputChatBox("[Centrala 311] Uwaga wezwanie z Centrali - #" .. outboundPhoneNumber .. ". ", value, 245, 40, 135)
outputChatBox("[Centrala 311] Pow?d: '" .. message .. "'.", value, 245, 40, 135)
outputChatBox("[Centrala 311] Lokalizacja: '" .. tostring(location) .. "'.", value, 245, 40, 135)
end
triggerEvent("phone:cancelPhoneCall", callingElement)
--triggerEvent("phone:cancelPhoneCall", callingElement)
end
end
elseif callingPhoneNumber == 611 then
if startingCall then
outputChatBox("Operator Luke Dish: Halo tu Operator 2 Luke, prosze poda? lokalizacje.", callingElement)
exports.anticheat:changeProtectedElementDataEx(callingElement, "callprogress", 1, false)
else
if (callprogress==1) then -- Requesting the location
exports.anticheat:changeProtectedElementDataEx(callingElement, "call.location", message, false)
exports.anticheat:changeProtectedElementDataEx(callingElement, "callprogress", 2, false)
outputChatBox("Operator Luke Dish: Czy mo?esz opisa? pow?d Twojego po??czenia?", callingElement)
elseif (callprogress==2) then -- Requesting the situation
outputChatBox("Operator Luke Dish Lainster: Dzi?kujemy za rozmow?, wys?ali?my jednostk? do Twojej lokalizacji.", callingElement)
local location = getElementData(callingElement, "call.location")

local affectedElements = { }

for key, value in ipairs( getPlayersInTeam( getTeamFromName( "San Andreas Highway Patrol" ) ) ) do
for _, itemRow in ipairs(exports['item-system']:getItems(value)) do
local setIn = false
if (not setIn) and (itemRow[1] == 6 and itemRow[2] > 0) then
table.insert(affectedElements, value)
setIn = true
break
end
end
end

for key, value in ipairs( affectedElements ) do
outputChatBox("[Centrala 611] Uwaga wezwanie z Centrali - #" .. outboundPhoneNumber .. ". ", value, 245, 40, 135)
outputChatBox("[Centrala 611] Pow?d: '" .. message .. "'.", value, 245, 40, 135)
outputChatBox("[Centrala 611] Lokalizacja: '" .. tostring(location) .. "'.", value, 245, 40, 135)
end
triggerEvent("phone:cancelPhoneCall", callingElement)
triggerEvent("phone:cancelPhoneCall", callingElement)
end
end


Postaw piwo autorowi tego posta
 

 
Tagi: owl :: gaming :: telefon
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Owl gaming Telefon Odpowiedz do tematu

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku