Jump to content

It says Resource not found, but the resource is there


stormchaser206

Recommended Posts

Heres my meta file:

<meta> 
     <info author="stormchaser206" type="gamemode" name="eXtreme Freeroam" description="Freeroam Gamemode" /> 
     <script src="testmode.lua" /> 
     <script src="gui.lua" type="client" /> 
     <file src="objects/minigx.txd" /> 
     <file src="objects/minigun_base.dff" /> 
     <file src="music\Noaa Weather Radio Severe Thunderstorm Warning.mp3" 
</meta> 

And heres my script codes:

testmode.lua (Server)

local spawnX, spawnY, spawnZ = 424.8961, 2529.8049, 16.6391 
  
exports.dxscoreboard:scoreboardAddColumn("Admin Level") 
exports.dxscoreboard:scoreboardAddColumn("VIP Rank") 
exports.dxscoreboard:scoreboardAddColumn("Money") 
exports.dxscoreboard:scoreboardAddColumn("Health") 
exports.dxscoreboard:scoreboardAddColumn("Armour") 
  
local TR 
  
function killMe(sourcePlayer) 
 killPed(sourcePlayer) 
 outputChatBox("You have killed yourself!", sourcePlayer) 
end 
addCommandHandler("kill",killMe) 
  
function onPlayerJoin() 
    -- we store the player's name 
    local joinedPlayerName = getPlayerName(source) 
    local serverName = getServerName() 
    -- and send him a greeting 
    outputChatBox("Welcome " .. joinedPlayerName .. " to ".. serverName .."!" , source, 255, 255, 255 ) 
    spawnPlayer(source, 132.8504, 1936.7646, 19.2756) 
    fadeCamera(source, true) 
    setCameraTarget(source, source) 
    addPedClothes(source, "glasses03red", "glasses03", 15) 
    addPedClothes(source, "watchyellow", "watch", 14) 
    addPedClothes(source, "suit2grn", "suit2", 0) 
    addPedClothes(source, "leathertr", "leathertr", 2) 
    addPedClothes(source, "neckropeg", "neck2", 13) 
    addPedClothes(source, "timberhike", "bask1", 3) 
    addPedClothes(source, "boater", "boater", 16) 
    createBlip(-689.4982, 938.1362, 13.6328, 19) 
end 
  
function onQuit(quitType) 
    -- we store the player's name 
    local quittingPlayerName = getPlayerName (source) 
    local level = getElementData(source, "Admin Level") 
    local money = getPlayerMoney(source) 
    local vipRank = getElementData(source, "VIP Rank") 
    local health = getElementData(source, "Health") 
    local armour = getElementData(source, "Armour") 
    -- and send the message to the server 
    outputChatBox (quittingPlayerName .." has left the server (".. quitType ..")") 
    setAccountData(source, "Admin Level", level) 
    setElementData(source, "Money", money) 
    setElementData(source, "VIP Rank", vipRank) 
    setElementData(source, "Health", health) 
    setElementData(source, "Armour", armour) 
end 
  
function onPlayerWaste(ammo, attacker, weapon, bodypart) 
     
    fadeCamera(source, false, 1.0, 255, 0, 0)         -- fade the player's camera to red over a period of 1 second 
    setTimer(fadeCamera, 3000, 1, source, true, 0.5) 
    spawnPlayer(source, spawnX, spawnY, spawnZ) 
    addPedClothes(source, "glasses03red", "glasses03", 15) 
    addPedClothes(source, "watchcro2", "watch", 14) 
    addPedClothes(source, "suit2grn", "suit2", 0) 
    addPedClothes(source, "leathertr", "leathertr", 2) 
    addPedClothes(source, "neckropeg", "neck2", 13) 
    addPedClothes(source, "timberhike", "bask1", 3) 
    addPedClothes(source, "boater", "boater", 16) 
end 
  
  
function garageOpenOrClose ( sourcePlayer, command, gaID ) 
    --Open garage 
    local gaID = tonumber ( gaID ) 
    if ( gaID ) then 
        if ( gaID > 0 and gaID < 50 ) then 
            local state = ( not isGarageOpen ( gaID ) ) 
            setGarageOpen ( gaID, state ) 
            outputChatBox ( "Garage ".. ( state and "opened" or "closed" ) .."!", sourcePlayer ) 
        end 
    else 
        outputChatBox ( "Usage: /garage (Garage ID)", sourcePlayer, 255, 0, 0 ) 
    end 
end 
  
function onBanHappen(theBan) 
-- onBan 
    if getElementType(source) then --Check if a player banned the IP/Serial 
        outputChatBox(getPlayerName(source) .. " banned " .. (getBanSerial(theBan) or getBanIP(theBan))) --Output to the chatbox saying the player has banned the IP/Serial 
    end 
end 
  
function setMyVehiclesVariant(theUser, command, var1, var2) 
    local var1, var2 = tonumber(var1), tonumber(var2) -- If anything was passed make sure its number or nil 
    local myVeh = getPedOccupiedVehicle(theUser) -- Get the vehicle that they're in 
    if (myVeh and getVehicleController(myVeh) == theUser) then -- Make sure they're in control 
        local wasSet = setVehicleVariant(myVeh, var1, var2) -- Set what they wanted 
        if (wasSet) then 
            outputChatBox("Vehicle variant successfully set!", theUser, 0, 255, 0) 
        else 
            outputChatBox("Vehicle variant unsuccessfully set.", theUser, 255, 255, 0) 
        end 
    end 
end 
  
function onLogin() 
    local playeraccount = getPlayerAccount (source) 
    local vipRank = getAccountData(playeraccount, "VIP Rank") 
    setAccountData(playeraccount, "Admin Level", 0) 
    setAccountData(playeraccount, "Money", getPlayerMoney(source)) 
    setAccountData(playeraccount, "VIP Rank", vipRank) 
    setAccountData(playeraccount, "Health", getElementHealth(source)) 
    setElementData(playeraccount, "Armour", getPedArmor(source)) 
    setElementData(source, "Admin Level", 0) 
    setElementData(source, "Money", getPlayerMoney(source)) 
    setElementData(source, "VIP Rank", vipRank) 
    setElementData(source, "Health", getElementHealth(source)) 
    setElementData(source, "Armour", getPedArmor(source)) 
end 
  
function loggedOut() 
    local playeraccount = getPlayerAccount (source) 
    local vipRank = getAccountData(playeraccount, "VIP Rank") 
    setAccountData(playeraccount, "Admin Level", 0) 
    setAccountData(playeraccount, "Money", getPlayerMoney(source)) 
    setAccountData(playeraccount, "VIP Rank", vipRank) 
    setAccountData(playeraccount, "Health", getElementHealth(source)) 
    setAccountData(playeraccount, "Armour", getPedArmor(source)) 
    setElementData(source, "Admin Level", 0) 
    setElementData(source, "Money", getPlayerMoney(source)) 
    setElementData(source, "VIP Rank", 0) 
    setElementData(source, "Health", getElementHealth(source)) 
    setElementData(source, "Armour", getPedArmor(source)) 
end 
  
function onClientPlayerWeaponFireFunc(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) 
    if weapon == 38 then -- if source is a local player and he uses minigun... 
                x,y,z = getElementPosition(getLocalPlayer()) 
        if not createProjectile(getLocalPlayer(),19,x,y,z,200) then -- then we either create a projectile... 
            outputChatBox ( "Rocket minigun overheated! Give it a rest pal!", source ) -- or if projectile limit is reached we output player a chat message 
        end 
    end 
end 
  
function putInOWorld() 
    local playerAccount = getPlayerAccount(source) 
    local level = getAccountData(playeraccount, "Admin Level") 
    local i = getElementsByType("vehicle") 
    if level == 10 then 
        setElementDimesion(source, 4) 
        setElementDimesion(i, 4) 
        outputChatBox("You have teleported to owner demension!", source) 
    else 
        outputChatBox("ERROR: You must be admin level 10 to use this command", source) 
    end 
end 
  
function onStart() 
    TR = createMarker(-684.8680, 939.6777, 13.6328, "arrow") 
end 
  
function onHit() 
    if source == TR then 
        setElementInterior(source, 9, 2253.1740, -1139.0100, 1050.6330 ) 
    end 
end 
  
-- Events and Commands 
addEventHandler("onPlayerLogout",getRootElement(),loggedOut) 
addEventHandler("onPlayerJoin", getRootElement(), onPlayerJoin) 
addEventHandler("onPlayerQuit", getRootElement(), onQuit) 
addEventHandler("onPlayerWasted", getRootElement(), onPlayerWaste) 
addEventHandler("onBan", getRootElement(), onBanHappen) 
addEventHandler("onPlayerLogin", getRootElement(), onLogin) 
addEventHandler("onClientPlayerWeaponFire", getRootElement(), onClientPlayerWeaponFireFunc) 
addEventHandler("onClientResourceStart", getRootElement(), onStart) 
addEventHandler("onClientMarkerHit", getRootElement(), onHit) 
addCommandHandler("garage", garageOpenOrClose) 
addCommandHandler("setvehvar", setMyVehiclesVariant) 
addCommandHandler ( "water", 
    function ( thePlayer, command, level ) 
        if level and tonumber ( level ) then -- if we have input something and if it is actually a number value 
            setWaterLevel ( tonumber( level ) ) -- change the water level 
            outputChatBox ( "Waterlevel is now: " .. level ) -- send a message to everyone to inform about the change 
        end 
    end 
) 
addCommandHandler("ownerworld",putInOWorld) 

gui.lua (Client)

function playerOptions(sourcePlayer) 
    createOptionDialog() 
end 
  
addCommandHandler("options", playerOptions) 
  
function guiButton1() 
    showCursor(false) 
    guiSetVisible(GUIEditor_Window[1], false) 
end 
  
function guiButton2() 
    showCursor(false) 
    guiSetVisible(GUIEditor_Window[2], false) 
    setElementHealth(localPlayer, 0) 
end 
  
function guiButton3() 
    showCursor(false) 
    guiSetVisible(GUIEditor_Window[3], false) 
    setElementPosition(localPlayer, 132.8504, 1936.7646, 19.2756) -- spawns player with random skin 
    fadeCamera (localPlayer, true) 
    setCameraTarget (localPlayer, source) 
end 
  
function guiButton4() 
    local pX, pY, pZ = getElementPosition(localPlayer)  
    showCursor(false) 
    guiSetVisible(GUIEditor_Window[4], false) 
    createExplosion(pX, pY, pZ, 10) 
end 
  
function guiButton5() 
    local pX, pY, pZ = getElementPosition(localPlayer)  
    showCursor(false) 
    guiSetVisible(GUIEditor_Window[5], false) 
    createFire(pX, pY, pZ, 10) 
end 
  
function guiButton6() 
    showCursor(false) 
    guiSetVisible(GUIEditor_Window[6], false) 
    setTimer(setElementHealth, 10000, 1, localPlayer, 0) 
    outputChatBox("You have 10 seconds before you die!") 
end 
  
function guiButton7() 
    showCursor(false) 
    guiSetVisible(GUIEditor_Window[7], false) 
    setTimer(setElementPosition, 10000, 1, localPlayer, 132.8504, 1936.7646, 19.2756) 
    outputChatBox("10 seconds before you spawn!") 
end 
  
  
function createOptionDialog() 
    GUIEditor_Window = {} 
    GUIEditor_Button = {} 
    GUIEditor_Window[1] = guiCreateWindow(133,172,554,310,"Player Options",false) 
    GUIEditor_Button[1] = guiCreateButton(207,273,131,22,"Close",false,GUIEditor_Window[1]) 
    GUIEditor_Button[2] = guiCreateButton(68,78,169,26,"Kill",false,GUIEditor_Window[1]) 
    guiSetFont(GUIEditor_Button[2],"sa-header") 
    GUIEditor_Button[3] = guiCreateButton(65,124,177,27,"Spawn",false,GUIEditor_Window[1]) 
    guiSetFont(GUIEditor_Button[3],"sa-header") 
    GUIEditor_Button[4] = guiCreateButton(65,172,177,27,"Explode Yourself",false,GUIEditor_Window[1]) 
    guiSetFont(GUIEditor_Button[4],"sa-header") 
    GUIEditor_Button[5] = guiCreateButton(301,78,177,27,"Create Fire",false,GUIEditor_Window[1]) 
    guiSetFont(GUIEditor_Button[5],"sa-header") 
    GUIEditor_Button[6] = guiCreateButton(303,123,177,27,"Kill Timer",false,GUIEditor_Window[1]) 
    guiSetFont(GUIEditor_Button[6],"sa-header") 
    GUIEditor_Button[7] = guiCreateButton(306,171,177,27,"Spawn Timer",false,GUIEditor_Window[1]) 
    guiSetFont(GUIEditor_Button[7],"sa-header") 
    showCursor(true) 
    addEventHandler("onClientGUIClick", GUIEditor_Button[1], guiButton1, false) 
    addEventHandler("onClientGUIClick", GUIEditor_Button[2], guiButton2, false) 
    addEventHandler("onClientGUIClick", GUIEditor_Button[3], guiButton3, false) 
    addEventHandler("onClientGUIClick", GUIEditor_Button[4], guiButton4, false) 
    addEventHandler("onClientGUIClick", GUIEditor_Button[5], guiButton5, false) 
    addEventHandler("onClientGUIClick", GUIEditor_Button[6], guiButton6, false) 
    addEventHandler("onClientGUIClick", GUIEditor_Button[7], guiButton7, false) 
end 
  
--NON GUI 
local car = engineLoadTXD("vehicles/rustler.txd") 
engineImportTXD(car, 476) 
local sentry = engineLoadTXD("objects/minigx.txd") 
engineImportTXD(sentry, 2985) 
local sentry = engineLoadDFF("objects/minigun_base.dff", 2985) 
  

weather.lua (Client)

if getWeather() == 8 then 
    playSound("music/Noaa Weather Radio Severe Thunderstorm Warning.mp3") 
    outputChatBox("A Severe Thunderstorm Warning has been issued for the area!") 
end 

Edited by Guest
Link to comment
This
"music\Noaa Weather Radio Severe Thunderstorm Warning.mp3" 

should be

"music/Noaa Weather Radio Severe Thunderstorm Warning.mp3" /> 

Tried that, didn't work.

Also, here's a server log:

================================================================== 
= Multi Theft Auto: San Andreas v1.3.1 
================================================================== 
= Server name      : Default MTA Server 
= Server IP address:  
= Server port      : 22003 
=  
= Log file         : .. 1.3/server/mods/deathmatch/logs/server.log 
= Maximum players  : 32 
= HTTP port        : 22005 
= Voice Chat       : Disabled 
= Bandwidth saving : Medium 
================================================================== 
[2012-10-20 12:17:26] WARNING: Not loading resource 'Airport Struggle' as it contains illegal characters 
[2012-10-20 12:17:26] WARNING: Not loading resource 'Countryside Adventure' as it contains illegal characters 
[2012-10-20 12:17:26] WARNING: Not loading resource 'High Flying Boom' as it contains illegal characters 
[2012-10-20 12:17:26] WARNING: Not loading resource 'New folder' as it contains illegal characters 
[2012-10-20 12:17:42] ERROR: Couldn't find script gui.lua for resource testmode 
[2012-10-20 12:17:42] Loading of resource 'testmode' failed 
[2012-10-20 12:17:44] ERROR: Problem with resource: assault; Failed to link to scoreboard 
[2012-10-20 12:17:44] ERROR: Problem with resource: briefcaserace; Failed to link to scoreboard 
[2012-10-20 12:17:44] ERROR: Problem with resource: cdm; Failed to link to scoreboard 
[2012-10-20 12:17:44] ERROR: Problem with resource: ctf; Failed to link to scoreboard 
[2012-10-20 12:17:44] ERROR: Problem with resource: ctf-bombsite; Failed to link to scoreboard 
[2012-10-20 12:17:44] ERROR: Problem with resource: ctf-canals; Failed to link to scoreboard 
[2012-10-20 12:17:44] ERROR: Problem with resource: ctf-hydrastrike;  
[2012-10-20 12:17:44] ERROR: Problem with resource: ctf-tbd; Failed to link to scoreboard 
[2012-10-20 12:17:44] ERROR: Problem with resource: ctv; Failed to link to scoreboard 
[2012-10-20 12:17:44] ERROR: Problem with resource: deathmatch; Failed to link to scoreboard 
[2012-10-20 12:17:44] ERROR: Problem with resource: fallout; Failed to link to scoreboard 
[2012-10-20 12:17:44] ERROR: Problem with resource: hay; Failed to link to scoreboard 
[2012-10-20 12:17:44] ERROR: Problem with resource: race; Failed to link to scoreboard 
[2012-10-20 12:17:45] ERROR: Problem with resource: scores; Failed to link to scoreboard 
[2012-10-20 12:17:45] ERROR: Problem with resource: stealth; Failed to link to scoreboard 
[2012-10-20 12:17:45] ERROR: Problem with resource: tdm; Failed to link to scoreboard 
[2012-10-20 12:17:45] ERROR: Problem with resource: tdma; Failed to link to scoreboard 
[2012-10-20 12:17:45] Resources: 200 loaded, 17 failed 
[2012-10-20 12:17:45] Querying game-monitor.com master server... failed! (302: Moved temporarily) 
[2012-10-20 12:17:45] Querying backup master server... success! 
[2012-10-20 12:17:46] Starting resources................... 
[2012-10-20 12:17:50] ERROR: Couldn't find resource testmode. Check it exists. 
[2012-10-20 12:17:50] Server started and is ready to accept connections! 
[2012-10-20 12:17:50] To stop the server, type 'shutdown' or press Ctrl-C 
[2012-10-20 12:17:50] Type 'help' for a list of commands. 
  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...