Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    [WIP]MTAM

    Well, I've been working on it on my free times, here I leave some information on what I've been adding & some screenshots: Added: Information pop ups ( for login, chat, etc... ) Over-contact effect. Add/remove to/from favorites. Set category. Delete contact. New right-click menu. Part of chat system. Screenshots:
  2. Good thing that you fixed it on your own. You're welcome.
  3. Antes del for-loop pone: guiGridListClear ( lista )
  4. GUIEditor_TabPanel = {} GUIEditor_TabPanel[1] = guiCreateTabPanel(315,183,290,299,false) Tab_Armas = guiCreateTab("Armas",GUIEditor_TabPanel[1]) lista = guiCreateGridList(38,36,208,187,false,Tab_Armas) guiGridListSetSelectionMode(lista,2) guiGridListAddColumn(lista,"Armas",0.6) guiGridListAddColumn(lista,"Municion",0.5) equipar = guiCreateButton(36,229,65,25,"Equipar",false,Tab_Armas) Tirar = guiCreateButton(149,230,65,25,"Tirar",false,Tab_Armas) Tab_Medicinas = guiCreateTab("Medicinas",GUIEditor_TabPanel[1]) Grid_Medicina = guiCreateGridList(34,21,218,185,false,Tab_Medicinas) guiGridListSetSelectionMode(Grid_Medicina,2) guiGridListAddColumn(Grid_Medicina,"Medicinas",0.2) Usar = guiCreateButton(33,222,74,26,"Usar",false,Tab_Medicinas) tirar_medicina = guiCreateButton(139,222,74,26,"Tirar",false,Tab_Medicinas) guiSetVisible(GUIEditor_TabPanel[1], false) function ver() guiSetVisible(GUIEditor_TabPanel[1], true) showCursor(true) armas ( ) end addCommandHandler("prueba",ver) function lol() guiSetVisible(GUIEditor_TabPanel[1], false) showCursor(false) end addCommandHandler("prueba2",lol) function armas ( ) for slot = 0, 12 do local weapon = getPedWeapon ( localPlayer, slot ) if ( weapon > 0 ) then local row = guiGridListAddRow ( lista ) guiGridListSetItemText ( lista, row, 1, getWeaponNameFromID ( weapon ), false, false ) end end end No estabas ejecutando "armas" en ninguna parte, ademas de haber llamado a una variable "armas" igual que la funcion. P.D: Es "prueba" no "prueva".
  5. Postea todo el script.
  6. I already told you where they are stored.
  7. I don't see the problem of downloading some kb.
  8. I don't really understand your question.
  9. Si, me temo que hiciste cualquier cosa. function armas ( ) for slot = 0, 12 do local weapon = getPedWeapon ( localPlayer, slot ) if ( weapon > 0 ) then local row = guiGridListAddRow ( lista ) guiGridListSetItemText ( lista, row, armas, getWeaponNameFromID ( weapon ), false, false ) end end end getPedWeapon no es una tabla, devuelve un arma, el for-loop era de 0 a 12 ( el slot ).
  10. I don't understand what are you talking about, elaborate your question.
  11. Usa un for-loop con: getPedWeapon guiGridListAddRow guiGridListSetItemText
  12. Castillo

    SQL Problem

    Try this and see what it outputs: function getBankMoney ( acccountName ) if ( accountName ) then local money = executeSQLSelect ( "players", "bankMoney", "accName = '".. accountName .."'" ) return money [ 1 ] [ 'bankMoney' ] else outputChatBox ( "No account name" ) end end
  13. Castillo

    SQL Problem

    Seems like "accountName" is returning nil at getBankMoney.
  14. Castillo

    download

    You can't compress mods ( vehicles, skins, weapons, etc ).
  15. You can map each and every house manually, like we did.
  16. All the houses were mapped manually by our server staff.
  17. I put put 'source' by mistake, then I changed it to 'localPlayer', but forum is working really slow.
  18. These two things are on "race/race_client.lua" if I'm right.
  19. function joinTeam() triggerServerEvent("sTeam", localPlayer, "teamSet") end
  20. Native event handlers doesn't require the use of addEvent, 3NAD. https://wiki.multitheftauto.com/wiki/OnPlayerMarkerHit
  21. Change "thePlayer" from addEventHandler to "root".
  22. Castillo

    download

    @Anderl: That's just for scripts, but I think he wants to decrease download of like vehicle mods.
×
×
  • Create New...