Jump to content

karlis

Members
  • Posts

    1,314
  • Joined

  • Last visited

Everything posted by karlis

  1. first access the 1st table in one line, then propably try to tonumber/tostring, depends what the key is, and on 2nd line acess 2nd table.
  2. for example don't do var=tbl1[tbl2].tbl3 but local ltbl=tbl1[tbl2] var=ltbl.tbl3 but that would help only, if error is in improper calling of arrays
  3. you can also use guiSetEnabled (atab1.Admin,false) so theres no bad looking empty spot or you could just remove the right in acl.(then you would need also remove the right to change the acl) but its a bad decision to give admin at all for ppl u don't trust
  4. try splitting it into few variables, and adding up the tree step by step
  5. nvm, interior and Interior isn't the same, anyway, i don't see where is Interior defined?
  6. srry for double, but edits don't take any notice progress update! *made hp show up correctly also for higher HP stat setting(still need to find out how stats affect armor) *now armor and hp refreshes 10times a second(should i lower it?) + onClientPlayerDamage, not every frame(found that being a unneeded lag) *damage showing on radar like a blurried red section, when getting hit(like in shooter games, all around red if just damage, right rotation if got hit by gun) *new HD(64*64)blips, no more ugly blurry blips from default SA(thanks to Cieran Douglas http://www.noe-version-2.com/ ) *blips can be marked with a text now. by default text shows for vehicle and player attached blips, showing vehicle name or nick can be changed by setElementData(theBlip,"blipText",text,true) --3rd arg: nil=default, false=don't draw, string=your text having problems with scaling down yet tough.( viewtopic.php?f=91&t=33382 ) *now map correctly handle bounds of world(in cost of much bigger radar image size(currently 2.8mb image folder total)) *hp and armor drawing is now smoother *hide key, for those who want to hide hud for screenshots/etc
  7. don't think you can use mysql node as an key, and btw fix first code, one quote is missing
  8. karlis

    bind 2 keys

    bindKey("keyX","down",function() if getKeyState("keyY") then --do what you want end end)
  9. well, you used so much tables inside a tables leading a key to another table inside a table with a key to another double table that i got confused... anyway, that error means some of the tables inside tables are not created
  10. you need to sync both BizInfo and intInfo then.
  11. intInfo=getElementData(getRootElement(),"data name") --now you can access everything that is stored inside that table, even other tables.
  12. karlis

    :roll: Video

    so we need an image/dff/txd streamer.
  13. yes, it would be advisable to don't have it too big(multidimensional arrays with 1000+keys per dimension can cause trouble.)
  14. karlis

    :roll: Video

    no i mean, added in 3d world, with actual dimensions, rotation, getting blocked by other stuff, etc...
  15. intInfo={} intInfo[1]={} ... --and so on setElementData(getRootElement(),"dataname",intInfo)
  16. just send the table as data then
  17. try updating your client
  18. oh, imo setElementData(getRootElement(),"dataname",data) getElementData(getRootElement(),"dataname") is a brilliant way.
  19. didnt really get what you mean, show full error message
  20. karlis

    HELP ME PLZ !!

    press 2 to remove chassis, and if its hydra, hold NUM8 to switch to horizontal mode
  21. hey, check these, this is from what i learned LUA http://www.lua.org/pil/index.html http://lua-users.org/wiki/TutorialDirectory https://wiki.multitheftauto.com/wiki/Scr ... troduction http://www.lua.org/manual/5.1/#index https://wiki.multitheftauto.com/ good luck!
  22. just get ingame, /register password, then /login password, and edit your acl to include the account into admins.
  23. karlis

    :roll: Video

    would be possible(i guess), but unless its a 3d see no point in it, but if 3d, that would ftw(playing mta in a mta...)
  24. yep thats right, thnx anyway, ur using photoshop, right? with paint.NET i cant find better .png then with 1bit alpha
  25. this draws same size as it would with size 1: dxDrawText(text,textx,texty,textL,textH,textcolor,0.3,"default","center","center",true,false,false) but this returns much smaller value, then is drawn there dxGetTextWidth(text,0.3) is it bug? note:all the variables is defined
×
×
  • Create New...