-
Posts
636 -
Joined
-
Last visited
Everything posted by 'LinKin
-
Hello, I've been told MTA has a function to output the time format from ms (Obtained by getTickCount()). However I canno't find it How to turn those ms into Days:Hours:Mins format? Also, how can I refresh that time each minute that the player is in the server? Maybe a timer in a client-side script? Thanks.
-
Hello, When you create a SQL database you must define the type of value of each column My question is, should I use INT for storing a value given by getTickCount() ? I think that number is big, maybe not supported with INT type. Does it exists the type LONG in lua? Can I assing LONG values to a SQL Database? Thanks.
-
I will use codebold.otf I don't really understand very much about those DirectX texts. " just export a font function that sets the font to whatever you want" For example.. ?
-
Hello, Is it possible to change the server's font? Is it possible to change everything at once? Or do I need to change the font in each resource (i.e mapmanager, votemanager, etc...) Thanks
-
Hey, so I'm using the guy's code But I got one question. In the table aPlayerTime, you insert a position (aPlayerTime[ source ] = { iTime = getTickCount( ), bLoggedOut = false }) So the question is, as soon as a player quits the server, is that row deleted from the table? I don't understand very well they way it works.
-
Uh, what could I use so that it allows me external connections?
-
So, I've made a MySQL db in 000webhost And guess what It still doesn't work.. Same error
-
Same error.
-
Same error.
-
Hey, I'm using MySQL database dbHandler = dbConnect( "mysql", "dbname=******;host=localhost", "*********", "**********", "share=1" ) dbName is OK dbUsername is OK dbPassword is OK I don't know why it's failing.. Any clue?
-
Hello, I am wondering if there exists an application to manage the server log file better. For example, to show only CHAT logs, or CONNECT logs. Range of time/date Thanks.
-
They are serversided, thats why I said "anyone who has your script". For example, I was told that ON1XS' script (https://community.multitheftauto.com/in ... ls&id=2764) used a MySQL database. And that guy was sharing his script, so everyone had the seversided file; Compiled, but you know that it's possible to uncompile. Well, I don't see a point to keep discussing about this because it was a general question, I don't think to share the script I will make.
-
Guys, when you connect to a MySQL database, according to the Wiki we must provide the username and password of the database. username: Usually required for MySQL, ignored by SQLite password: Usually required for MySQL, ignored by SQLite But... Isn't this unsafe? I mean, you're telling anyone who has your script the username and password of your MySQL database.
-
I understand his idea. Read carefully and you will understand too. Basically it's something like an anti-lag script. To explain more; for example, when you're shooting a player, sometimes, in your screen, you see that you shot him. But on the other player's screen this is not happening (due to lag); therefore, the player takes no damage. Uh, is there some way to do that? I am just curious
-
Yeah, of course having a connection to a database. I almost always avoid to put some code, and just put the code where I want to focus, that's why I only implementated the code of onPlayerQuit event. Thanks again mate, you've been very helpful
-
But, for example, I do something like: addEventHandler("onPlayerQuit", getRootElement, function() local wins = getElementData(source, "wins") local deaths = getElementData(source, "deaths") -- then, somehow, I store those values into the SQL db (I've not learnt the code by heart yet) end)
-
Thanks. Going a little bit forwards. I want your opinion; I think it's not nessesary to use setElementData with the values stored in a database because we could make the operations directly into it. However, I think it is better (like easier) to use this setElementData, because while a player is online, and he does some actions, we can 'play' with setElementData and getElementData. Then when he quits, we can use getElementData and store the values we want into the database. What do you think about that?
-
https://wiki.multitheftauto.com/wiki/Modules/MySQL Isn't it suppossed that db functions were made in order to avoid using SQL Module?
-
Hello, I want to learn how to use a MySQL database with MTA scripts. I know absolutely nothing about it so far. That's why I'm here to ask if someone is kind enough to tell me where to begin from. I was taking a look at this post https://forum.multitheftauto.com/viewtopic.php?f=148&t=42067 then found in the wiki something that said that now MySQL functions are native in MTA. (i.e dbConnect, etc). So I got kind of confused whether or not I must use that MTA-MySQL Module or not. Also, there exists any example-script that uses MySQL? I appreciate your help! -Linkin.
-
I've found some additional arguments. Such as Color, etc.. Thank you!
-
Thank you 50p and Saml1er. I meant to ask if it's posible to change the 'style' of the current Pie that this URL returns to this one: https://google-developers.appspot.com/c ... iechart#3D forexample
-
IntroNet Servers : 100% High Performance guaranteed
'LinKin replied to intronet's topic in Hosting solutions
Good one. -
Would be like this http://chart.googleapis.com/chart?cht=p ... s,00000000 Could you tell me how to return a 3D Chart Pie?
-
I wanted to have a nice chart. I was looking after a 3D Pie Chart. But also, to return the image as .png (so that the background is transparent) in order to make it look stylish. Do you think it's possible to do this?