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: ogłoszeniach
1. DB w ogłoszeniach
Witam mam problem z tym skryptem pr?buje go na sw?j serwer wstawi? ale wyskakuj? mi DB i nie wiem co mam zrobi? za pomoc stawiam :piwo:

DB w 10/28/40 linijce
S_side
[lua]

local skrzyniaogloszen = createObject ( 980, 0,0, -100 )

function ogloszenie ( source, cmd, ... )
if not getElementData(source,"duty") then outputChatBox("*Brak uprawnien",source,255,0,0) return end
if ... then
if not getElementData ( skrzyniaogloszen, "ogloszenie" ) then
local text = table.concat({...}, " " )
setElementData ( skrzyniaogloszen, "ogloszenie", true )
setElementData ( skrzyniaogloszen, "tekstogloszenia","(Admin) "..getPlayerName(source):gsub("#%x%x%x%x%x%x","").." ( "..getElementData ( source, "id").." ) : n "..text.." ")
setTimer ( setElementData, 10000,1, skrzyniaogloszen, "ogloszenie", false )
else
outputChatBox("Og?oszenia mog? by? nadawane minimum 10 sekund.", source, 255, 96, 0, true )

end
else
outputChatBox("Aby nada? og?oszenie /ogloszenie [tresc] .", source, 255, 96, 0, true )
end
end
addCommandHandler("ogloszenie", ogloszenie)

[/lua]

c_side (tu s? b??dy)
[lua]
local start = getTickCount()
function isEventHandlerAdded( sEventName, pElementAttachedTo, func )
if
type( sEventName ) == 'string' and
isElement( pElementAttachedTo ) and
type( fu...