Jump to content

some errors


sckatchof

Recommended Posts

hi all i some help again

in server consol

WARNIG: TNS/Police/gate/gate.lua:11: bad 'player' pointer @ getplayer team' <1>

local MarkerPolice = createMarker( 1588.4000244141, -1637, 11.39999961853, 'corona', 12.0, 0, 0, 255, 0) 
local Policegate1 = createObject(980, 1590.1999511719, -1638.4000244141, 15.199999809265, 0, 0, 0) 
  
function MarkerHit1 ( hitElement, matchingDimension ) 
    if getPlayerTeam(hitElement) == teampolice then 
        moveObject(Policegate1, 2000, 1598.1999511719, -1638.4000244141, 15.199999809265 ) 
    end 
end 
  
function MarkerLeave1( leaveElement, matchingDimension ) 
    if getPlayerTeam(leaveElement) == teampolice then 
        moveObject(Policegate1, 2000, 1590.1999511719, -1638.4000244141, 15.199999809265 ) 
    end 
end 
addEventHandler( "onMarkerHit", MarkerPolice, MarkerHit1 ) 
addEventHandler( "onMarkerLeave", MarkerPolice, MarkerLeave1 ) 

Link to comment
local MarkerPolice = createMarker( 1588.4000244141, -1637, 11.39999961853, 'corona', 12.0, 0, 0, 255, 0) 
local Policegate1 = createObject(980, 1590.1999511719, -1638.4000244141, 15.199999809265, 0, 0, 0) 
  
function MarkerHit1 ( hitElement, matchingDimension ) 
    if ( getPlayerTeam(hitElement) and getPlayerTeam(hitElement) == getTeamFromName("Police") ) then 
        moveObject(Policegate1, 2000, 1598.1999511719, -1638.4000244141, 15.199999809265 ) 
    end 
end 
  
function MarkerLeave1( leaveElement, matchingDimension ) 
    if ( getPlayerTeam(leaveElement) and getPlayerTeam(leaveElement) == getTeamFromName("Police") ) then 
        moveObject(Policegate1, 2000, 1590.1999511719, -1638.4000244141, 15.199999809265 ) 
    end 
end 
addEventHandler( "onMarkerHit", MarkerPolice, MarkerHit1 ) 
addEventHandler( "onMarkerLeave", MarkerPolice, MarkerLeave1 ) 

Link to comment
local MarkerPolice = createMarker( 1588.4000244141, -1637, 11.39999961853, 'corona', 12.0, 0, 0, 255, 0) 
local Policegate1 = createObject(980, 1590.1999511719, -1638.4000244141, 15.199999809265, 0, 0, 0) 
  
function MarkerHit1 ( hitElement, matchingDimension ) 
    if ( getPlayerTeam(hitElement) and getPlayerTeam(hitElement) == getTeamFromName("Police") ) then 
        moveObject(Policegate1, 2000, 1598.1999511719, -1638.4000244141, 15.199999809265 ) 
    end 
end 
  
function MarkerLeave1( leaveElement, matchingDimension ) 
    if ( getPlayerTeam(leaveElement) and getPlayerTeam(leaveElement) == getTeamFromName("Police") ) then 
        moveObject(Policegate1, 2000, 1590.1999511719, -1638.4000244141, 15.199999809265 ) 
    end 
end 
addEventHandler( "onMarkerHit", MarkerPolice, MarkerHit1 ) 
addEventHandler( "onMarkerLeave", MarkerPolice, MarkerLeave1 ) 

thnx for help .

but when i get near the gate opens but when I leave the region does not close the gate !

WARNIG: TNS/Police/gate.lua:5: bad 'player' pointer @ 'getplayerteam'<1>

WARNIG: TNS/Police/gate.lua:11: bad argument @ ''getplayerteam'

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...