-
Posts
285 -
Joined
-
Last visited
Everything posted by dugasz1
-
Hello! If i remember right i could send more then one sql command. Am i remember right? Can i do it now too? Because as far as i remember i had to set an option in dbQuery and now there is now such an option.
-
I translate it to English if it's oky. He wrote this: http://fontawesome.io/cheatsheet/ Select the icon you want and copy it. Paste it somewhere you want in the script and a square should be appear. Somhow like this: local icons = { ["automobile"] = "", ["trash"] = "", } --dxDrawText(icons["automobile"], ...) (The square is the character code of your character)
-
Hmm good idea might be cause of that. I should check with more values is it always twice as big as it should be.
-
This is why i calculated with 4 byte(rgba) instead of 3 (rgb). Or am i wrong?
-
Hello guys. First question: local width = 1024 local height = 256 local target = dxCreateRenderTarget ( width, height, true) So, i created a 1024*256 render target with alpha. But get dxGetStatus() says i used 2mb of video ram. Why? I guess an rgba color takes 4 byte. 1024*256 = 262144 pixel 262144 * 4 byte = 1048576 byte 1048576 / 1024 = 1024 kb 1024 / 1024 = 1 mb (Am i missed something?) So it should be 1 mb but it 2 mb so render targets uses double buffering? And if yes can i disable this, somehow? Because i only draw my render target once then use it forever. So it's just take my vram for nothing. Second question: What is exactly streaming memory? I mean is it the video memory? And what is the problem with it? SA doesn't manage it good enough and if i use too much modell in the same place then the video memory will be full then crash or wierd things happen?
-
I fixed it. I can compile now ml_base it loads too. But : There was two main (in lua.c and luac.c) But why? I deleted luac.c (yolo) what the difference between them? I see in the example how can i register a function but can i call default mta functions?
-
Hello guys! I'm trying to compile my module for MTA. (Just want to know how it woks and do some basic stuff, curiosity) But i'm using VS 2015 and the lua lib is for an older version i guess. So i have to compile lua with my project. Do you guys know which version of lua should i use? And any suggestions how to make this work?
-
Oky it looks like i get it now So there are 3 queues (high,normal,low) and the MTA will download it by in order by groups first high then normal then low and every time when a group is ready it start every resource in that group. If i get it right? So if i put all my resource in 0 group then mta will download them all then begin to start them resource by resource ? But what is the order in the groups? I made a few test now and it looks like it depends on the start order. Which order did you say that start resourcename, MTA saves it and the same order will be applyed in client side too. So if in the mtaserver.conf first you auto started mysql then you autostarted account then mysql will start first then account. (On client side in the same order)
-
Maybe i did't express my self correctly but i know that. The question is about when will be the resource loaded if i join to a server? After everything downloaded or if a resource is completly downloaded then it starts immediatly (doesn't wait for the other resource to be complet).
-
Hello guys! My question is that how downloading works? So, when i join to a server and this is my first connection so i have to download everything. When will any resource start? When all full download is complet or when one resource is downloaded? Second thing is this is not my first join to the server (or i interrupter the download first time and it needs to continue) but i have a few file but there are new resources or need to update. Then will my downloaded resources start or it wait until all download complet? I'm asking this because i have a lot of exported function and i don't want any bug because the resource is not avaible yet.
-
Not yet. Now i checked it, it looks good. But it still lua, it not as clean as C# (in my opinion).
-
This is not the right forum for your problem. You should contact with vortexserver's support. The will find the problem.
-
Hello, Maybe it was asked before me (i tried to search but no result). What do you think about another script language next to Lua? Some day ago i found the GTA Network and GTA Orange projects (Alternative GTA 5 MP) where C# was a supported scirpt language. I really like OOP so this is why i would suggest that. (In my opinion Lua's OOP is a pain in the ass) I don't really into this things, so it would be maybe too hard to work it out. Or i don't know is it a good script language is it fast enough. What do you guys think? Edit (Oops wrong topic, sorry)
-
As far as i know (i looked it up now too) you can't simulate character click with script. (You can only move the cursor) The only way to do it is by JS but you can't do it as you mentioned because it is disabled for safty reasons i guess.
-
I just put a prefix before it if first character is numeric.
-
Maybe you have the same problem what i had. Link If you'r node name start with numeric then it's invalid xml and xmlLoadFile will return false.
-
If someone interested in the anwser: Fuuu... Thanks to @Awang, he find the problem. Node name can't start with numeric... Some XML rules which i didn't know.... (Link)
-
If you using resources or a mod what doesn't written by you then maybe there's the problem somewhere. My first tip would be that you should seach through all files with total commander to this: showPlayerHudComponent function. This can disable your crosshair. (Or maybe somebug do it but first i guess check this)
-
Thank you, I'm checking it but don't really get it what is hapenning. I took a quick look at it but it fails. I will take a look again on it tomorrow. If i can't manage to do it can we talk a little bit more, and can you explain me again what i'm doing wrong.
-
And again. Someone?
-
Test it with outputDebugString(). Find where it fails.