Script'te Çıkan Hata

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı SARl

  • Acemi Üye
  • *
    • İleti: 145
: 16 Ekim 2020, 13:31:37
Sunucuma Yeni AltDuyuru Ekledim Hud Script'imi Oraya Yazdım Halen Olmadı. Ayarladım Fakat setTimer Hata verdi. Yardım Eder Misiniz

Linki görebilmek için Kayıt olun yada Giriş yapın.
Spoiler for Hiden:
function advert( )
    local rnd = math.random( 1, #adMessages )
    --outputChatBox( adMessages[ rnd ], getRootElement(), 255, 255, 255, true )
   exports["(Adana)Hud"]:dm(adMessages[ rnd ], getRootElement(), 255, 255, 255)
end
Linki görebilmek için Kayıt olun yada Giriş yapın.
 


MTASATURK

Script'te Çıkan Hata
« : 16 Ekim 2020, 13:31:37 »

Çevrimdışı mantar_

  • Yeni Üye
  • *
    • İleti: 13
Yanıtla #1 : 16 Ekim 2020, 14:02:03
Export işlemini kontrol et, sc adını değiştir - kullanırsan daha sağlıklı olur.

Kod
exports['ADANA-notification']:addNotiifcationBox(...)
 


Çevrimdışı SARl

  • Acemi Üye
  • *
    • İleti: 145
Yanıtla #2 : 16 Ekim 2020, 15:34:58
Spoiler for Hiden:
local adMessages = { }

addEventHandler( "onResourceStart", getResourceRootElement( getThisResource( ) ),
    function()
        local msg
        local file_root = xmlLoadFile( "altyazi.xml" )
        if file_root then
            local ads = 0
            local ad_node = xmlFindChild( file_root, "ad", 0 )
            if ad_node then
                while ad_node do
                    ads = ads + 1
                    adMessages[ ads ] = xmlNodeGetValue( ad_node )
                    ad_node = xmlFindChild( file_root, "ad", ads )
                end
                --msg = "SUCCESS: advertisement messages loaded - "..tostring( ads ).." message(s)"
                --outputServerLog( msg )
                --outputDebugString( msg )
                setTimer( advert, 1 * 120000, 0 )
            else
                --msg = "WARNING: file altyazi.xml does not contain any advertisement messages"
                --outputServerLog( msg )
                --outputDebugString( msg )
            end
            xmlUnloadFile( file_root )
        else
            --msg = "ERROR: file altyazi.xml couldn't be loaded"
            --outputServerLog( msg )
            --outputDebugString( msg )
        end
    end
)
function advert( )
    local rnd = math.random( 1, #adMessages )
    --outputChatBox( adMessages[ rnd ], getRootElement(), 255, 255, 255, true )
   exports["Adana-HUD"]:dm(adMessages[ rnd ], getRootElement(), 255, 255, 255)
end


Senin dediğini yaptım Fakat Olmadı Attım Kodları
Linki görebilmek için Kayıt olun yada Giriş yapın.