Anderl
Members-
Posts
2,266 -
Joined
-
Last visited
Everything posted by Anderl
-
I guess MTA:SA connects to Game-Monitor.com and adds the server and server sends data while it's online. You can use GameQ PHP system to query server data.
-
Ok guys, with some qaisjp help and his example I was able to do something ( like his example ). It still needs wrappers, but it's much easier than what I was trying to do. Thanks for not helping, people
-
No problem.
-
If you knew it you would not ask such things. You can't just request functions to make a resource, it's your things, you should know what you want, not us lol
-
It didn't work because you didn't change what I said. setTimer - Read argument list and their info.
-
Seria bom se fosse algo novo, mas RPG? Já olhou quantos RPG existe no MTA? Milhões. Por isso que MTA:SA não cresce
-
Arguments aren't global, you must send them to setTimer's function.
-
Again, there's no player parameter. It's source and it's not sent in parameters of function. If you would have read what I said, you would not get them but you seem like you just want to copy code.
-
There's no source parameter.
-
Also, first parameter of resetTimer is the timer, not the function attached to the timer.
-
Nop, it's right. I wrote " \' " but the Lua tags changed to a single " ' " ( it even has a different color ). It's just that if you copy the code it will appear as a single ' and not " \' ".
-
Do you know what is opinion? Anyway, please someone lock or delete this topic - gonna become a flame war for sure.
-
NO! NONE of you can say that becuase you have never hosted with them! Just by the look of the design of the website or the server specs you CANNOT judge them! When people says website design is bad doesn't mean service is bad.
-
domVPS - Budget and high-end virtual servers!
Anderl replied to Cameron's topic in Hosting solutions
Someone told me domVPS is closing forever due to attacks. -
Oh, ok.. I saw somewhere that it didn't exist in Linux ._.
-
As far as I know, localhost doesn't exist in Linux so localhost can't be used. So you can't say localhost is the same as 127.0.0.1 as with localhost it won't work.
-
addCommandHandler('lol', function(p) setTimer(killPed, 5000, 1, p) outputChatBox('You\'ll die in 5 seconds!', p, 255, 255, 255, false) end )
-
What you say makes no sense because people are free to say what they think about the companies website/services, it's just their opinion. If companies don't want to lose/not have customers then they should do something decent.
-
So, people can't say what they think about the website?
-
Like that but there's other way: create an environment and then unload the code from that environment. I'm just trying to do something with setfenv, but it's first time I mess with these type of functions. Any help? EDIT: I still could not do something like I need, it doesn't seem to work the way I thought it would be. Anyone could give a hand?
-
I don't see why make things complicated while they're easy
-
Hey, I was doing some script that'll load Lua files and it's using loadstring but later I'll need to unload the code. I'd like to know if there is any way to save event handlers, timers, elements and everything that is stored in a Lua VM in a table using wrappers, but saving them by file. What I mean is, if is there a way to store the added handlers, timers, the created elements and everything that is loaded by loadstring by files when using wrappers. Here's example: The file to be loaded: function init() addEventHandler('blabla', root, trolol) end function trolol() --some gay code here end A part of the code of the loader: return _G[pSettings.supportedFormats[toCSTR(value.path):type()].fn](value.param or pSettings.supportedFormats[toCSTR(value.path):type()].defParams) -- this is where the loadstring is called And the wrappers: local sandBox = {} sandBox.events = {} _addEventHandler = addEventHandler function addEventHandler(...) sandBox.events[HERES_FILE] = {...} return _addEventHandler(...) end HERES_FILE should be read and should point to the file of the added handler. Is there any way to do this except putting file name and saving on table? It's not good this way because if I change file name or location I'll have to change everything. Also, for those of you which like to say things to increase post count, just don't comment please. Thank you.
-
Are you sure MySQL server is accepting external connections?
