-
Posts
851 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Noki
-
I can confirm. Running right now, and no issues whatsoever. FPS is running smooth, and audio is not glitchy (like it was with 9926).
-
JSON converts tables into variables and strings into variables. Line 6 has x, y and z in a table, and is saving that table as a string. When you login, it converts that string into a variable.
-
Oh, so you own CSG's resources? I doubt you even wrote one line of it. It's also funny that you say they're not public domain, as I'm pretty sure it was you who leaked them in your little fit of last year. What are you talking about mate? Ha far has ik sensei is the owner of Csg Sensei doesn't own CSG anymore. He renamed it to NGC early last year and dumped it about 6 months later. I'm pretty sure I would know what happened since I was a co-owner there at one point.
-
Although malware and virus are [sort of] interchangeable terms, SunArrow is still right. Typically, anti-virus software actively scans for a variety of computer viruses and threats. Malwarebytes only scans when you want it to, hence the protection is not active as such. Sorry, i just have to say this: Malwarebytes has real time protection, it's not scan only type of software(it was scan only like in 2008 i believe) Ah yes. I haven't used it since like 2008 or so. But I'm sure their real-time protection isn't as sophisticated as something like AVG.
-
Why would a workaround even be needed? If the client doesn't want their clipboard being retrieved, then they don't want their clipboard being retrieved. Simple as that.
-
You know how there is that checkbox in the multiplayer tab of settings which allows the client to permit screen upload by the server? Why not use a feature like that in this suggestion? That way the client will have to permit it, and it will only work if the client has that setting enabled. If the client allows it, so be it!
-
Although malware and virus are [sort of] interchangeable terms, SunArrow is still right. Typically, anti-virus software actively scans for a variety of computer viruses and threats. Malwarebytes only scans when you want it to, hence the protection is not active as such.
-
Oh, so you own CSG's resources? I doubt you even wrote one line of it. It's also funny that you say they're not public domain, as I'm pretty sure it was you who leaked them in your little fit of last year.
-
To elaborate on what Mr Moose said, let me give you some code. local plrTbl = {} function foo(plr) if (plrTbl[plr]) and ((getTickCount() - plrTbl[plr]) < 1000) then outputChatBox("Too soon!") else outputChatBox("Not even spamming") local plrTbl[plr] = getTickCount() end end addCommandHandler("bar", foo)
-
There is currently no event that is triggered upon player registration. But say you wanted to create a custom event for use when someone registers using the "register" command, you could use this (not tested, and not guaranteed to work, but instead provided as a basis to be worked upon): addEvent("onPlayerRegister", true) addEventHandler("onPlayerRegister", root, function (source) setPlayerTeam(source, getTeamFromName("foo")) end ) function handleCommand(cmd) -- This will work when they use register, nothing to check if they actually did it successfully if (cmd == "register") then -- We trigger the event and pass the source (the client who actually wrote the command) triggerEvent("onPlayerRegister", source) end end addEventHandler("onPlayerCommand", root, handleCommand)
-
OHH! so we pass "thePreviousAccount" by "_," Right?! I basically explained everything that Walid didn't. Anyway, Yes, we are using '_' because we do not need to pass thePreviousAccount. However, that is only for this case. Don't just think that parameter is not needed at all, because it can be useful from time to time. Only underscore if you do not require a parameter that is before one you want to use. You can also rename the parameters, as they only rely on chronological order. For example, I could call thePreviousAccount 'TPA' if I wanted to. It would work the same way. But, the next one would be theCurrentAccount, I can call it whatever I want.
-
Have a look at the onPlayerLogin event. You see the part where it says 'parameters'? They are basically the arguments that you can put in the functions that use that event. So, in our case, we only needed to know the current account, that was just logged into using onPlayerLogin. So, we used an underscore to nullify the other argument (thePreviousAccount), and proceeded to write theCurrentAccount as our second argument. By doing this, we're bypassing the first paramater, because we don't need it. The wiki page for that event should show any possible parameters you're able to use with this function.
-
You're using element data, which when assigned to a player, will reset when that player disconnects. So, you'll need to use account data. addEventHandler("onPlayerQuit", root, function () if (not isGuestAccount(source)) then local acc = getPlayerAccount(source) local money = getPlayerMoney(source) setAccountData(acc, "Money", money) end end ) addEventHandler("onPlayerLogin", root, function (_, theCurrentAccount) local money = getAccountData(theCurrentAccount, "Money") setPlayerMoney(source, tonumber(money)) end ) Using this eliminates the need for that element data, and instead you just fetch the money and save it when needed.
-
setAccountData getAccountData
-
Build 10074 was fine for me, but as soon as I upgraded to 10130 (after a fresh format + install) performance issues started to arise. Edit: I also noticed that proxy_sa no longer exists for me now. Edit 2: I think MTA might only be running on one GPU, the integrated one (Windows 10 laptop, dual-mode AMD and Intel graphics). I'm using the latest 15.5 AMD drivers. I heard DirectX12 was supporting running two GPUs simultaneously at once. Maybe that is the root of the cause? Edit 3: I found a half fix. You just need to update your Intel Graphics drivers to ones that support Windows 10. Use this tool to do so. It got my FPS from 11 to 29.
-
What did you see ? fast or slow ? I personally found it to be rather slow. I would advise you to check mtaserver.conf and tell me what httpserver is set to.
-
A lot of laptops are starting to support SSDs. Ever since 2011, they have started to become more and more popular. But in the case of raysmta, I doubt he will be able to use an SSD in his laptop, considering it is so outdated.
-
Hi, I was trying to start an MTA server on my Raspberry Pi, but it didn't work. I looked a bit and found the problem, the Pi has ARM architecture and hence cannot run an MTA server for obvious reasons. Is there any workaround I can go by, or any possible future support for ARM planned?
-
Are you using the internal HTTP server, or an external one?
-
And here I am not even checking the Wiki pages for something I may have missed. Thanks, Jusonex. I'm not able to test it right now, but I will let you know if it worked! Edit: it worked, thanks a heap!
-
First off, you bumped an old thread and included no new information in your post or anything of worthy significance. However, if you read the last note on the Mantis post linked above, it says that Eir is the way to go for this. Unfortunately, Eir has been quite glum as of late.
-
Whichever one I do returns nil. I've tried to get the max column value before, and with the same result. Odd.
-
Let's say I select it and that query works. Using it with dbQuery will return a query handler, which you poll with dbPoll. dbPoll returns a table. What do I do to get the MAX(houseID) from that table?
-
Hello, I'm trying to get the last insert ID from a MySQL table (using LAST_INSERT_ID()). As seen below, the table does auto increment and it does have a primary key. Table creation code (unedited in phpMyAdmin): dbExec(db, "CREATE TABLE IF NOT EXISTS `housing` (`houseID` INT NOT NULL AUTO_INCREMENT, `owner` TEXT, `interiorID` TINYINT, `x` FLOAT, `y` FLOAT, `z` FLOAT, `houseName` TEXT, `currentPrice` INT, `boughtForPrice` INT, `initialPrice` INT, `sale` TINYINT, `open` TINYINT, PRIMARY KEY(houseID))") Code I'm using to retrieve the value (which doesn't work): local qh = dbQuery(db, "SELECT LAST_INSERT_ID()") local result = dbPoll(qh, -1) Any help would be greatly appreciated.