-
Posts
4,144 -
Joined
-
Last visited
-
Days Won
1
Everything posted by dzek (varez)
-
thanks for answer and the links
-
Hi Sometimes i hear word "table", sometimes "array", are they the same for LUA? Or this is another types? I was always not sure about it, and looping through it. Every loop on ipairs (this is looping through tables/array, right?) i've written i've copied from wiki, then modified. Now look what im trying to do: texts= { } textCount=0 function showText(text, time) textCount = textCount+1 texts[textCount]={ } texts[textCount]['text']=text texts[textCount]['time']=time end -- for example I'm adding some texts to that table/array showText("test1",50) showText("test2",33) showText("test3",99) -- then after some conditions im removing one of them texts[1]=nil -- so only texts[0] and texts[2] are not nil -- how can i loop through all texts, w/out using iteration, and checking if texts[i] is nil, or not nil ? -- for example output all texts, and times assigned to them to chatbox?
-
ingame press F8, and type debugscript 3 it will help you. i see you dont see the difference between client and server scripts: any client scripts need to be in sepatare lua file, and in meta.xml there should be "type" attribute set to "client" the line: addEventHandler( "onClientResourceStart", resourceRoot, Client ) no need for it at all. rest of your script looks ok, i've not tested it, but it should work.. if not, use debugscript 3, and see what's wrong ps. please post any lua scripts in [ lua] your code [ /lua] tags
-
with getElementsByType getElementData moveObject you can do it if you want to make it elevator like (up and down) use setTimer too
-
dude, NOBODY WILL SPENT AROUND 3-4-5-6-7 DAYS FOR YOU FOR FREE argh, "please please pls pls plzplszpslzsplzspl" <-- i hate that
-
why all of you love doing offtopic so much recently?
-
i'm playing full hd (ok, im not, too crappy laptop, but its technically possible, ive tried it) with 1.0.3 without any problem
-
get your memory dumps and report the problem maybe? its not happening for me. im switching beetween 3 servers in that way every time im playing
-
you have to forward MTA port + ASE port (ASE port = MTA port + 123, like: mta port: 22003, then ase port: 22126)
-
try running the game in window maybe?
-
wow, funny.. i've scripted that already, all attributes got same name, and working in the same way (one optional is missing)
-
its ok on single player?
-
i cant believe my eyes, you are asking for advice? hmm, i'll answer when i get back home (this will be useful for myself also, as i'm planning to replace some billboards too) but short instruction, probably complete: 1.) get IMGTool for San Andreas, 2.) get name of object you want to replace, 3.) look through *.IDE files for texture file name of your object (IDE structure is something like "ID, model_name, texture_file_name, another-ones") (in 98% cases texture file is same name as model file, but another extension) 3.) with IMGTool open gta3.img that is in MODELS folder in GTA installation 4.) extract your txd (texture) file 5.) get TXDWorkshop 6.) open your txd, extract files to bmp 7.) edit bmp 8.) with TXDWorkshop import your bmp to your txd 9.) do magic with scripting: my_txd = engineLoadTXD ("billboard.txd") engineImportTXD(my_txd, 7300) where 7300 is the model ID, and "billboard.txd" is path to your file, relative to resource root (you know that i think ), and don't forget to add your file to meta.xml i think i don't have to explain it more?
-
check ACL, you dont have access to anything but opening admin panel.. about f1 -> "stop freeroam" (as admin/from server console) will do the job
-
it happens on 1.0.4 too, i'll try to post memory dump later, when i get access to my computer
-
oh, rc.. i thought i downloaded final, it was from main page .. hmm, im not convinced to untested ones, but ill try
-
finnally, got memory dump
-
hmm, i think if you create like 1000 objects serverside, the server will send new data to client, but it wont show the loading thing. i must check it. my maps are about 1MB now, and i want a lot more objects. @topic creator: i have posted the same problem some days ago in Scripting (AFAIR)
-
Read more about mysql_query on wiki: https://wiki.multitheftauto.com/wiki/Modules/MTA- ... ysql_query local user = "tom" local pass = "pass" -- you need to escape all data given by players, read about SQL Injection on google user = mysql_escape_string(connectionhandler, user) pass = mysql_escape_string(connectionhandler, pass) local result = mysql_query(connectionhandler, "SELECT * FROM user_table WHERE username='"..user.."' and password='"..pass.."'")
-
it start lag just after zombie resource is started (when mabako services is on, modded and original one - no difference). changing limit dont help. btw: game seems to "jumping" every about second when this resource is on (im talking about case without mabako resource).
-
Need Some One Who Can Make Good Scripts To Join Us !
dzek (varez) replied to Hasoon's topic in Scripting
you really had to undig so old topic? -
what is "webmap"?
-
ban ip range, painful but will help i think
-
when mabako-services is turned on with zombies, the client got a big laag all the time (like 1 frame every 2-3 seconds). wtf? also when everything is turned off, and just zombie script is on, i have 10 fps less that without it (but i think it must be like that)
-
game freezee after connect, (+converting maps to lua)
dzek (varez) replied to dzek (varez)'s topic in Scripting
its bad that mta cant download zipped version from server.. zip is about 10-20% of unzipped version.. ill try now to disable all maps
