Jump to content

Problema con getRootElement


Brad96

Recommended Posts

Posted
function Reparar(thePlayer) 
 local Veiculo = getPedOccupiedVehicle(thePlayer) 
 if Veiculo then 
 outputChatBox ("-Auto Reparado "..getPlayerName(thePlayer),player,0,255,0,true) 
    fixVehicle(Veiculo) 
    else 
    outputChatBox ("-No Tienes Auto..",thePlayer,255,0,0) 
     bindKey(source,"1","down",Reparar) 
    end 
 end    
 addEventHandler("onPlayerVehicleEnter",getRootElement,Reparar) 

el problema esque deberia mostrarme el mensaje solo ami y lo muestra a todo el server se que es "getRootElement" me explicarian que usar ? y donde puedo consegir informacion de todos estos eventos o nose como se llaman .. gracias

Mi Nick En El Juego : Bs|Brad

Mi Skype : fer_va_96

Posted

No, el problema es que estas usando 'player', pero tu argumento es 'thePlayer'.

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.

  • Recently Browsing   0 members

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