Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Creas una tabla, y ahi metes todos los vehiculos usando el jugador como index.
  2. El problema es que estas usando la misma variable para todos los jugadores, tenes que usar una tabla.
  3. That command doesn't trigger the event I think.
  4. And where are you using the getElementSpeed function? you're still using getElementVelocity...
  5. Cambia la posicion, tan simple como eso.
  6. Debe ser porque creaste los botones con la posicion sin parent, tenes que moverlos.
  7. You've got several problems there, you are using lower case, but Lua is case-sensitive, you have to write it exactly like it says on the wiki. So, change "outputchatbox" to "outputChatBox" and "addeventhandler" to "addEventHandler". You also have a missing end at "gateo" function.
  8. First = guiCreateButton(286, 203, 114, 32, "First of the year", false, GUIEditor.window[1]) Asi.
  9. function getPlayerBanSerial ( thePlayer ) assert ( isElement ( thePlayer ) and getElementType ( thePlayer ) == "player", "Bad player element" ) local playerSerial = getPlayerSerial(thePlayer) if ( thePlayer ) and ( playerSerial ) then local theBans = xmlNodeGetChildren( banlist ) for i, theNode in ipairs( theBans ) do local theValue = xmlNodeGetAttribute( theNode, "Serial" ) if ( theValue == tostring(playerSerial) ) then outputChatBox ( "getPlayerBanSerial: value of theValue is: ".. tostring ( theValue ) ) return theValue else outputChatBox ( "getPlayerBanSerial: theValue doesn't match" ) return false end end end end Use that and see what it outputs to the chatbox when you use the command.
  10. Pone los botones como parent de la ventana.
  11. I already told you, to remove yourself from scoreboard, you'll have to edit the scoreboard and make it.
  12. That'll also remove a column...
  13. Which means that the function is returning a boolean: true or false/nil.
  14. That'll just remove the columns.
  15. Ah, yeah, I forgot about that, there are some command names which won't work because they're used by MTA.
  16. You'll have to edit the script.
  17. You did what I told you to? debug the function by pieces?
  18. getTimerDetails returns several values, the first one is the time left of the timer in milliseconds, save that value in account data.
  19. The same way you created it in the first place...
  20. Tried debugging it? ( No, I don't mean check debugscript, I mean see what everything is returning, to find out the cause of the problem ).
×
×
  • Create New...