Jump to content

help gate


WASSIm.

Recommended Posts

Posted
the gates table is not exist you have to create it?
local getTable = { 
  
    {2990, 1284.2, -2056.4, 61.7, 0, 0, 90, 1284.2, -2056.4, 61.7, 2000, 10, "N..S.E", "N..S.E"}, 
  
function getGatesTable () 
    return getTable 
end 

Omerta Roleplay

Posted

You're simply using the wrong name.

This:

for ID=1,#gates do 

should be:

for ID=1,#gateMarkers do

for ID=1,#gateMarkers  do 
    local object, x, y, z, int, dim = gateMarkers[ID][1], gateMarkers[ID][2], gateMarkers[ID][3], gateMarkers[ID][4], gateMarkers[ID][5], gateMarkers[ID][6] 
    local theGateCol = createColSphere(x, y, z, gateMarkers[ID][12]) 
    local theGate = createObject (object, z, y, z, gateMarkers[ID][5], gateMarkers[ID][6], gateMarkers[ID][7]) 
    theGateColID[theGate] = ID 
    addEventHandler("onClientColShapeHit", theGateCol, gateOpen) 
    addEventHandler("onClientColShapeLeave", theGateCol, gateClose) 
end 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Post your entire script.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Replace:

local theGateColID = {} 
local gateMarkers = getGatesTable () 

with:

addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        theGateColID = { } 
        gateMarkers = getGatesTable ( ) 
    end 
) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Same error? post the meta.xml.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
    

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

That's strange, it should work.

Question: Why don't you just put it all in the same file?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Just put it all on the same file.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Post the new code.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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