Jump to content

dudeks

Members
  • Posts

    45
  • Joined

  • Last visited

dudeks's Achievements

Rat

Rat (9/54)

0

Reputation

  1. Still nothing. In newest driver same. Now I've got a window with Nvidia Optimus With all this drivers i have this: Anyone have solutions?EDIT: ok it's some cef issue https://bugs.mtasa.com/view.php?id=9219
  2. Hello. I can't run MTA on 1920x1080 resolution in borderless window. In other resolution works, but in this nope. Got only black screen, but it's ready for input (console > quit works). MTADiag: https://pastebin.mtasa.com/137671302
  3. Hello. I can't run MTA on 1920x1080 resolution in borderless window. In other resolution works, but in this nope. Got only black screen, but it's ready for input (console > quit works). MTADiag: https://pastebin.mtasa.com/137671302
  4. Hello. I have a little problem. Can't append a html element in my local site. function cef_create(window_code) executeBrowserJavascript(browser, 'createWindow("'..window_code..'");') end addEvent("cef_create", true) addEventHandler("cef_create", root, cef_create) local div = "\ \ " setTimer(function() cef_create(div) end, 3000, 1) <script src="http://mta/local/jquery.js" type="text/javascript"></script> <script type="text/javascript"> function createWindow(code) { $('body').append(code); } </script> I've got an error, and details of it: How to fix it?
  5. dudeks

    db* functions

    I've just updated my first post. Function query didn't work after queryUpdate that I post in 1st post. query function is: function query(query, ret) local query = dbQuery(mysql, query) local result, rows, id = dbPoll(query, -1) if result then if ret then return true, result, rows else return true, false, rows end else outputServerLog("MYSQL ERROR: "..rows.." | "..id) dbFree(query) return false, false, false end return false, false, false end In query function i've not using this, I wrote my gamemode sometime ago and can't use it now.
  6. dudeks

    db* functions

    Hello. After 1.5 update I was change mysql functions from module to inbuilt functions and have one problem. dbQuery function works only once and returns a data after start the script. Later? Returns nil and nope, nope, nope. I've writen function queryUpdate to auto-update row in table. After use of this, my function query isn't working. dbQuery(mysql, 'UPDATE `accounts` SET `playerHumanity`=?, `gamePoints`=?, `lastLogin`=?, `premiumPoints`=?, `playerPosition`=?,`playerBlood`=?, `lastIP`=?,`playerGroupID`=?, `playerName`=?, `playerItems`=?, `playerThirsty`=?, `playerPain`=?, `playerHungry`=?, `playerLegs`=?, `playerTemperature`=?, `lastQuitType`=?, `playerModel`=?, `playerEnergy`=?, `playerHands`=?, `playerBleeding`=? WHERE `characterID`=11', "0", "0", "CURRENT_DATE", "0", "93.08;-219.28;1.85;0;0", "12000", "86.63.94.152", "0", "dudeks", "|||BANDAGE,1;BANDAGE,1;PAINKILLER,1||", "100", "0", "100", "0", "36.599998474121", "Quit", "73", "100", "0", "0") Is it too long? Any solutions?
  7. So... Due to update with CEF We need to change it. What you think about it?
  8. Nope, it's not it. I mean using local .php files in CEF, now we can use .html files only.
  9. Hello. How to use local php files in web browsers? .php extension is not allowed in meta.xml file, is other way to use it? Need to be local for executing events from browser in client.
  10. dudeks

    Connection timedout

    http://pastebin.mtasa.com/417209115
  11. dudeks

    Connection timedout

    Hello. Since two days I have a problem connecting to any server. Still displays the message 'connection lost'. http://scr.hu/1jfv/nvgrg Once redirected to a page with tips, I did them all and still did not help. Getting that done: - The newly installed MTA - The newly installed GTA - I changed my anti-virus - I turned off the firewall - I installed the latest patch of MTA - With coercion also installed a new operating system
  12. Witam. Mam dosyć dziwny dla mnie problem z nazwijmy to 'nieuczciwą konkurencją'. Ów osobnicy z innych serwerów nieznanym JESZCZE dla mnie sposobem dodają swoje komendy na serwer, utrudniają rozgrywkę innym graczom poprzez masowe zabijanie ich, rozstawianie przed nimi namiotów czy też podmienianie wszystkich pojazdów na jakiś konkretny model. Zasób runcode usunięty (przez który jako tako mogli by coś dodać). Przeszukałem każdy zasób z serwera pod względem nazw tych komend, dodałem zabezpieczenie poprzez onPlayerCommand, też nic. Przy wyszukiwaniu w zasobach 'loadstring' - aktywny zasób który to używa to 'admin' (jakaś dziura? obejście uprawnień?) przy wydarzeniu 'aExecute'. Czekam na jakieś rozwiązanie mojego problemu. Pozdrawiam.
  13. Rozwiązanie z pętla dla mnie i dla rozwoju mojego skryptu jest lepsze. langStrings = { ["Polski"] = { ["CHOOSED_LANG"] = "Wybrałeś język: $1!", ["LOGIN_LAST_VISIT"] = "Ostatnio na serwerze byłeś $1-$2-$3 o godzinie $4:$5", ... } ... } Sprawdza się bardzo dobrze, nawet jeżeli argumentów jest więcej niż jeden, lub ułożenie argumentów w innym języku się zmienia.
  14. Właśnie string.format mi nie wystarczy, chcę zrobić gamemode nie tylko w języku polskim, dlatego czasem argumenty będą w innej kolejności wynikające z innego ułożenia zdania. A co do twojej pierwszej propozycji, miałem coś podobnego, działało. Myślałem, że da się to zrobić jakoś lepiej
×
×
  • Create New...