Jump to content

lo podrian corregir?


Plate

Recommended Posts

hola miren me tome mucho mucho tiempo estudiando (me parece que esta mal pero bue )

auto = createVehicle createVehicle ( 433, -2270, 2300.8999023438, 5.4000000953674, 0, 0, 270 ) 
  
  
function autos(player, seat, jacked) 
if source == auto then 
local accountname = getAccountName (getPlayerAccount(player)) 
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Umbrella" ) ) then return end 
cancelEvent() 
outputChatBox ( "solamente umbrella puede usar estos vehiculos", player, 255, 0, 0, true ) 
end 
end 
addEventHandler ( "onVehicleStartEnter", getRootElement(), autos ) 

pero no siirveeee

Link to comment

lol , tienes errores de sintaxis basicos

auto = createVehicle ( 433, -2270, 2300.8999023438, 5.4000000953674, 0, 0, 270 ) 
  
  
function autos(thePlayer, seat) 
if seat ~= 0 then and source == auto then             --------- talvez no entiendas lo que significa ~=, es : si es diferente a  
local accountname = getAccountName (getPlayerAccount(thePlayer)) 
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Umbrella" ) ) then return end 
cancelEvent() 
outputChatBox ( "solamente umbrella puede usar estos vehiculos", thePlayer, 255, 0, 0, true ) 
end 
end 
addEventHandler ( "onVehicleStartEnter", root, autos ) ----Si hay ifs tienes que poner root 

Link to comment

muchas gracias ElMota y Solid son los mejores una cosa mas :

que esta mal de esto

    cylinder3 = createMarker(206.76786804199,1860.228515625,13.140625 ,"cylinder3",1.5,0,125,250,153) 

function mostrarTienda(hitPlayer) 
    triggerClientEvent(hitPlayer,"mostrarTienda",getRootElement(),hitPlayer) 
end 
addEventHandler("onMarkerHit",cylinder,mostrarTienda) 
  

me disculpo con edi por lo de la otra ves es que estaba demaciado cansado y en enojado , el me dijo eso y enojo mas todabia

ElMota tiene un error el script dice

main_s.lua:14: unexpect symbol near "and" 

Edited by Guest
Link to comment

hay ? mira

cylinder3 = createMarker(206.76786804199,1860.228515625,13.140625 ,"cylinder",1.5,0,125,250,153) 
function mostrarTienda(hitPlayer) 
    triggerClientEvent(hitPlayer,"mostrarTienda",getRootElement(),hitPlayer) 
end 
addEventHandler("onMarkerHit",cylinder3,mostrarTienda) 
  

ElMota hay un error en el script que me pasastes

auto = createVehicle ( 433, -2270, 2300.8999023438, 5.4000000953674, 0, 0, 270 ) 
  
  
function autos(thePlayer, seat) 
if seat ~= 0 then and source == auto then        
local accountname = getAccountName (getPlayerAccount(thePlayer)) 
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Umbrella" ) ) then return end 
cancelEvent() 
outputChatBox ( "solamente umbrella puede usar estos vehiculos", thePlayer, 255, 0, 0, true ) 
end 
end 
addEventHandler ( "onVehicleStartEnter", root, autos ) 
  
  

Link to comment
function autos(thePlayer, seat) 
if seat ~= 0 and source == auto then       
local accountname = getAccountName (getPlayerAccount(thePlayer)) 
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Umbrella" ) ) then return end 
cancelEvent() 
outputChatBox ( "solamente umbrella puede usar estos vehiculos", thePlayer, 255, 0, 0, true ) 
end 
end 
addEventHandler ( "onVehicleStartEnter", root, autos ) 

sorry se me habia olvidado borrar ese then lol

Link to comment
  • Recently Browsing   0 members

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