Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. I don't think any of these scripts are on the MTA community, there's a level system I made though, the rest is up to you. https://community.multitheftauto.com/in ... ls&id=1253
  2. Right click on the tab panel, then add the tab with the option that'll appear.
  3. You can send the code from server side and execute it client side.
  4. Castillo

    SQL

    La verdad que ese script no tiene mucho sentido, digo por la query de SQL. Yo usaria dos tablas, una para las gangs y otra para los miembros.
  5. createPickup setElementInterior setElementDimension
  6. local tags ={"","~UpS~","|HC|} You got missing quote character after |HC.
  7. Castillo

    CheckBox

    See his edited post, he meant comboBox.
  8. I guess that he used: interpolateBetween guiGetSize guiSetSize
  9. A que te referis con en que lineas? todo ese archivo es la death list.
  10. Castillo

    JoinQuit.

    Where did you get that script from? because it has missing server side.
  11. Castillo

    JoinQuit.

    Show us the server side.
  12. Castillo

    dbPoll?

    You're welcome.
  13. Castillo

    dbPoll?

    I know that, but I mean, what number does it say?
  14. Castillo

    Wins script

    Well, your first problem is that you are using "thePlayer" in that script, instead of alivePlayers [ 1 ]. You can try with this: function DestructionWin ( ) local account = getPlayerAccount ( source ) if isGuestAccount( account ) then return end local wins = tonumber ( getElementData ( source, "Wins" ) ) or 0 setElementData ( source, "Wins", ( wins + 1 ) ) outputChatBox ( "#FFA824The player ".. getPlayerName ( source ) .." won!", root, 255, 255, 255, true ) end addEvent ( "onPlayerWinDD", true ) addEventHandler ( "onPlayerWinDD", root, DestructionWin )
  15. That doesn't make any sense, post your entire script.
  16. Castillo

    dbPoll?

    What does "num_affected_rows" return?
  17. Castillo

    Wins script

    How do you execute: "DestructionWin" function?
  18. Try making the script server side.
  19. That's wrong, firstly, you never defined "messageType" at your function, also, the type isn't "me", is 1.
  20. onClientMouseEnter playSound
  21. Castillo

    dbPoll?

    You can use this: function poll(resultid) local result, num_affected_rows, errmsg = dbPoll(resultPool[resultid], -1) if ( not result ) then outputDebugString("Error: "..errmsg) return false end return result, num_affected_rows end Then on your script: local query = exports.mysql:query("SELECT * FROM characters WHERE account='"..accID.."'") local result, affected = exports.mysql:poll(query) outputChatBox ( result [ 1 ] [ "id" ] ) outputChatBox ( result [ 2 ] [ "id" ] )
×
×
  • Create New...