Jump to content

Drakath

Members
  • Posts

    768
  • Joined

  • Last visited

Everything posted by Drakath

  1. Drakath

    Draw distance

    Does anyone know a minimal draw distance to draw the whole San Andreas map without the water surrounding it?
  2. Wasn't it called "protected"? Did they change it?
  3. So I tried making an extra table for sorting but turns out it messed up the listing. Numbers mixed up so each player in the table got a number of another player. I need another way to sort those numbers.
  4. There is another problem in this case. theTable is a table that stores more tables. The numbers I need to sort are tableValue[2]. I can't sort theTable because it would try to compare two tables. Should I try to make another table which would store every tableValue[2] and then sort it or is there a better way?
  5. table.sort(table, function(a,b) return a[2] > b[2] end) I'm still not sure how to use this though. Does this override the original table.sort? Something like this?: table.sort(table, function(a,b) return a[2] > b[2] end) function asdf(theTable) for i, tableValue in ipairs(theTable) do local row = guiGridListAddRow(theList) table.sort(tableValue) guiGridListSetItemText ( theList, row, Column2, tableValue[2], false, true ) end end
  6. What if the table has a number and a string? myTable[1] is a string and myTable[2] is an integer.
  7. Drakath

    Login panel

    /login and /register commands are default functions of admin resource. You can search for them there and remove it.
  8. Drakath

    Login panel

    Try this addEvent ( "login", true ) addEventHandler ("login", root, function (thePlayer, acc, pw) local account = getAccount (acc, pw) if ( account ~= false ) then logIn ( thePlayer, acc, pw ) else outputChatBox ( "Wrong username or password!", thePlayer, 255, 255, 0 ) end end
  9. I added some rows with numbers to my GridList but it sorts it from lowest to highest and I want to sort it from highest to lowest. Is there a way to make the sorting the way I want by scripting?
  10. Drakath

    PC shutting down

    Sounds a lot like your video card is failing. You can use a program called 3DMark to stress test your video card.
  11. They are compatible by default.
  12. There is still no event handler for clientSubmitLogin() function. Where did you get this script anyway?
  13. Did you add an event handler for that other function? Also, change addEvent("submitLogin") to addEvent("submitLogin", true) and addEventHandler("submitLogin", loginPlayer) to addEventHandler("submitLogin", root, loginPlayer)
  14. You are triggering an event called "submitLogin" here: triggerServerEvent("submitLogin",getRootElement(),username,password) However your other event is called "LogIn" here: addEvent("LogIn") addEventHandler("LogIn", loginPlayer) The event name has to be the same. Also, clientSubmitLogin function is never triggered either. You need to add event handler for that function.
  15. Where is "onLogin" event triggered? You might wanna change it to "submitLogin".
  16. As I remember, there is an auto-kick for people who have Cheat Engine turned on so I doubt they can use it.
  17. Drakath

    Crashes

    2 of the crashes you mentioned are known ones that so far haven't seen an fix, both related to SA and animations and atleast one most likely failing at animation stuff randomly by yes, being out of memory (taking it by first chance so with trying to find the source it looks to be anim stuff but infact being memory problems) that last is about the crash you listed on offset 0x0032F4DE (see http://bugs.multitheftauto.com/view.php?id=1438 for more info) The other ones you listed, one at 0x000D3FBC is an problem with SA animations where the fix isn't yet found for (see https://bugs.multitheftauto.com/view.php?id=6200) The last one you provided (0x000D0654), please upload an crashdump of that using http://upload.mtasa.com and reply with the link here (Program Files > MTA San Andreas 1.4 > MTA > Dumps > private, and from that crash (offset and most recent) Thanks for the information, I uploaded the dump file. Although 0x0032F4DE seems to happen even when I don't use projectiles.
  18. Drakath

    Crashes

    MTA crashes quite often when many pedestrians are chasing you (Zombies script). So far I got 3 different offsets. Mostly it's 0x0032F4DE. What do they mean? Are they somehow related to sounds or peds? My script can play up to 9 sounds at the same time. Is it my script using too much memory or some sort of bug in MTA? I took a look at the performance browser's Lua memory category and my script is using 3866-7483 KB memory, 22-33 refs, 30-71 timers, 24-38 elements, up to 5% CPU. Pedestrians are created client-side. MTA Diag: http://pastebin.mtasa.com/334315483
  19. If this event is canceled, the bullet(s) won't be synced with other players. Client will still see it. Use onClientWeaponFire instead.
  20. Drakath

    Performance browser

    I'm using the default web performance browser. How can I see which resource make the performance suffer most? Which category should I look at? My server's hardware is pretty good but it has a poor network. Do resources impact network performance? If yes, which category should I look at?
  21. There is no such column. "Drakath" is supposed to be the value and "name" is the column.
×
×
  • Create New...