Jump to content

lo podrian corregir?


Plate

Recommended Posts

Posted

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

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

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 

elMota/elFoReX De Vuelta En MTA *---------*

Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3

https://www.youtube.com/user/KillersGPs

430x73_FFFFFF_FF9900_000000_000000.png
Posted
----Si hay ifs tienes que poner root

Que??????????????? 'root' es lo mismo que getRootElement ( ) salvo que mas corto.

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 (edited)

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

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

El tipo de marker esta mal, porque pusistes: "cylinder3" ? es "cylinder".

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

es que solid uso el mismo recurso (tienda_de_armas) le cambio las imagenes y las id de las armas para que de otras (osea seria otra tienda) y se me mesclan las 2

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Pero eso es el tipo de marker, no el ID.

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

ya lo se solid es qe nose como cambiar el marker

solid el recurso que corrigio ElMota no funciona me dice

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

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

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 ) 
  
  

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

cuando pongo start recurso1 en el panel de la consola

sale esto

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

y despues

warning load script failed 

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted
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

elMota/elFoReX De Vuelta En MTA *---------*

Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3

https://www.youtube.com/user/KillersGPs

430x73_FFFFFF_FF9900_000000_000000.png
  • Recently Browsing   0 members

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