Jump to content

Subtixx

Members
  • Posts

    67
  • Joined

  • Last visited

Everything posted by Subtixx

  1. You need the mta_mysql.so (the .dll things are build for windows and .so for linux) btw, great news ! -.- i know. i have the problem on windows!
  2. Subtixx

    MTA 1.2 modules

    i have a problem with MTA 1.2 Windows Server. the module mta_mysql.dll don't load at startup. Only with loadmodule command: mtaserver.conf: with mtaserver.conf: with loadmodule mta_mysql.dll: EDIT2: but ml_sockets works fine.. with mtaserver.conf:
  3. i hate the new db functions. db functions REALLY needed: dbNumRows dbEscapeString the module MTA_Mysql doesn't work for me..? Unable to find modules/mta_mysql.dll but my Linux Server can find the module... EDIT: with loadmodule mta_mysql.dll: loadmodule: Requested by Console MODULE: Loaded "MySQL 5.0 database module" (0.50) by "Alberto Alonso " with mtaserver.conf: MODULE: Unable to find modules/mta_mysql.dll! EDIT2: ml_sockets works...
  4. Subtixx

    Table FTW??

    show the error. EDIT: i think this is correct: newTable = { "1st value", "2nd value" } addCommandHandler("showmetable", getRootElement(), function() for i,v in ipairs(newTable) do outputChatBox(tostring(v)) end end)
  5. guiCreateStaticImage and playSound
  6. use this -> https://community.multitheftauto.com/ind ... ils&id=461
  7. Edit: THX. im really dump.. Please Close
  8. omg so simple ... im dump.. sorry. Thanks!! And my Image Problem? Full Script: http://pastebin.com/j5gkyj2Y Meta.xml in the first post
  9. Okay. I have made an GUI for the Duty (Weapons and Skins) I want when a player type: /pduty and the Player is in the Faction Police that the GUI opens EDIT: but when the function isPlayerInFaction serverside how do i do that then?
  10. yeah but in my script i tried to make this: (server-side) function getTheFaction(thePlayer,factionID) if isPlayerInFactionType(thePlayer,factionID) then tempdata = 1 else tempdata = 0 end setElementData(thePlayer,"tempdata.factions",tostring(tempdata)) --getPlayerFactions( thePlayer ) end but the answer was: Police Department fail false
  11. I hope you can help me .. So I have now tried a command to the Factions scripts (client side) but there is always the fault call failed "string"? Script: function policeDuty(commandName) if exports.factions:isPlayerInFactionType( getLocalPlayer(), 1) then showCursor(true) guiSetVisible(DutyWindow, true) else outputChatBox("Police Department fail!") end outputChatBox(tostring(exports.factions:isPlayerInFactionType( getLocalPlayer(), 1))) end addCommandHandler("pduty",policeDuty) And The images are not displayed .. Script: Waffe1 = guiCreateButton(26,31,85,81,"Deagle",false,DutyWaffenWindow) WaffeImg1 = guiCreateStaticImage(4,4,78,72,"images/DEAGLE.png",false,Waffe1) EDIT: meta.xml: <script src="police/duty/duty_c.lua" type="client" /> <script src="police/duty/duty.lua" type="server" /> <file src="police/duty/images/280.png" /> <file src="police/duty/images/281.png" /> <file src="police/duty/images/282.png" /> <file src="police/duty/images/284.png" /> <file src="police/duty/images/DEAGLE.png" /> <file src="police/duty/images/MP5.png" /> <file src="police/duty/images/M4.png" /> <file src="police/duty/images/SNIPER.png" />
×
×
  • Create New...