-
Posts
636 -
Joined
-
Last visited
Everything posted by 'LinKin
-
What? When a player clicks a button.. hm Use this: onClientGUIClick: setElementData(localPlayer, "yourDataKey", true) .. This is what I understand.. And btw, when a player quits the server all his elementData gets lost, for the /cansel thing, maybe you can do setElementData(localPlayer, "yourDataKey", nil) You should explain more what you're trying to do. It's really hard to help if you don't put some effort to make your post be understandable.
-
Who are you? Are you working on a similar script?
-
Do you ever get bored With all the little repeated actions you must do for playing a clanwar? Wish a script gave you More information and manage everything for you? GET YOUR LICENCE NOW ___________________________________________________________________________________________________________________ * Click on 'NOW' and then in the website click on the ACM logo to read more about ACM.
-
Hello guys, I've a person that wants to donate via SMS, but the thing is that I only accept PayPal, He's from Lebanon, so PayPal doesn't work there, I was wondering if there's someone who knows what I can do about this. We were thinking that one solution would be to make a 'deal' to host a server, so that he can pay for the server via SMS and the guy we give the server to sends me the money to my PayPal. Thanks for your time.
-
Hello, I was wondering if there exists the possibility that an element's key gets changed. For example if you created a team with a script, the team occupies a certain position in memory and it is assigned a key so that it can be accessible (example: userdata:878E812A) Can this 'userdata:878E812A' change somehow while the script is running? (Note that I will not perform any modification to the team) Please take into account that I'm saying while the script is running, I'm not asking if it will change after I restart the script (we already know it would change by doing this) Thanks.
-
Hello, I'm looking for a Hosting Company, (It doesn't have to be exclusively a MTA:SA hosting company) that accepts SMS Payments in Lebanon. Also if u know some site where I can but a domain for, using the same payment method from the same country Do you know one? Thanks.
-
Thanks Madex
-
Yeah.. but how to implement this on MTA? I can generate the MD5 of the meta.xml and put it somewhere in the script, but then when the script starts how can I compare the meta.xml against the original meta's MD5 ? EDIT: Found this: https://wiki.multitheftauto.com/wiki/Md5 So hm yeah.. How can I get the meta.xml text as a string in order to turn it to MD5 and compare it with the original one? EDIT2: https://wiki.multitheftauto.com/wiki/FileRead But there's an argument (count: The number of bytes you wish to read.) .. Why in the example that argument is 500? I don't really understand it EDIT3:Ok, I am reading the whole meta.xml but how can I know which number to put in the 'count' argument? I arbitrarily put 100000 (It did read the whole meta.xml) using the returned value of fileGetSize didn't work.
-
I do that with settings. But setting's names are defined in meta, therefore, if they are changed, the script will not recognize them. But it's not settings the only reason why I want to check if the meta.xml is modified. I want to check if a .lua file has been added/removed in meta also. .. I don't have a clear idea of how to 'solve' this.. Probably using fileWrite, etc... I'm not sure.. How to compare a file to another?
-
Hello, What's the point to add this into meta.xml ? A list of ACL rights this resource will need. I had added it but it didn't really do anything.. Thanks.
-
Hello, Is there a way to check if the meta has been modified? Not only the resource information (which you can get by using getResourceInfo) but the whole meta file. Thanks
-
Hello, I was wondering, is if possible to set a value of more than 5 characters long as Port and/or HTTP Port? Thanks.
-
This client-side bindKey( "g", "down", "Global Chat", function () if getKeyState( "lshift" ) == true then -- Here you'd do your code end end )
-
Ok, tried with while cycle, but it freezes the server... uh no.. I got a good solution now. Just call a function when the result is ready: function getServerIp() callRemote("http://www.nub.hj.cx/getServerIp.php", function(value) if (value ~= "ERROR") then outputChatBox(type(value).." IP: "..value) resultReady() -- Here's the function return value end end) outputChatBox("Returning False...") return false end
-
1st reply had nothing to do with what I asked. I'll try to use a while cycle.. while theIP == false do hm, I'll try. Thanks Chronic
-
Hello, I've this code: addCommandHandler("getip", function() local theIP = getServerIp() outputChatBox(theIP) end) function getServerIp() callRemote("http://www.nub.hj.cx/getServerIp.php", function(value) if (value ~= "ERROR") then outputChatBox("Returning value...") return value end end) outputChatBox("Returning False...") return false end And the problem is: Error: attempt to concatenate local 'theIP' (a boolean value) Ln: 4 That's beacause when I call the function getServerIp() the result is NOT immediate, so, it will return false at first, and then after a very short period of time, it will return the value (the IP) So the question is, how can I make getServerIp() function to wait untill the result is ready? I tried to add connectionAttempts argument in callRemote but it didn't work. I was getting the same error.
-
Restored those 2 files. Went well for 1h (again) then I had the crash again..
-
UTF8_general_ci That's what I found researching. Thanks
-
Hello, What's the limit of characters for a server's name? Also, which collation in MySQL must I use for this column? I've seen that some servers' names contain strange characters. (Ascii) This is very important.. (The Collation) Thanks.
-
Hi, Can I use setElementData with a table? Like setElementData(source, "keyWord", {'one','two','three'}) Thanks.
-
I use that one, I've not anything to complain about. For me it's fine. Whenever I need to research something about it, it's quite easy to find it. Ubuntu 12.04 64-Bit is very common and well-known, thus, it's a good choice. Also, as far as I know, Ubuntu and Debian are similar, correct me if I'm wrong; The commands typed in Ubuntu are the same as Debian.
-
Ubuntu 12.04 64-Bit
-
I uninstalled, and reinstalled MTA, it ran normally for about one hour, and then it crashed again. This is the MTADiag log: http://pastebin.mtasa.com/430825418
-
Oh.. Have you tried it? Is it trustable?
-
Hello, I want to check if the server that runs a script is allowed to use it. addEventHandler("onResourceStart", resourceRoot, function() local serverIP = getServerIP() -- If only this existed.. dbC = dbConnect( "mysql", "dbname=frank;host=1.2.3.4", "username", "password", "share=1" ) local query = dbPoll ( dbQuery ( dbC, "SELECT * FROM servers WHERE ip=?", serverIP ), -1 ) if ( query and type ( query ) == "table" ) then outputChatBox("This server can use this script!") else outputChatBox("This server cannot use this script!") end end) But, as far as I know, it's kinda impossible to get the server's IP.. So I'm looking for an alternative way, any suggestions? Thanks.