Jump to content

robhol

Retired Staff
  • Posts

    2,120
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by robhol

  1. Right direction: https://forum.multitheftauto.com/search.php As the Christmas spirit is strong, I will also point out that this topic is also in the wrong section.
  2. You could try searching the forums...
  3. While you're learning MTA scripting, you might also find this: http://robhol.net/guide/basics helpful.
  4. You're pretty much fuxd. I feel with you, but that's why we save frequently.
  5. 1) Reading your code like that is a nightmare. Use [code=lua], space out your code a bit, and indent it properly. 2) As subenji said, that function doesn't really work on the server. However, you can just check the player's coordinates related to the radar area's in your own function, or you can create a colshape (colrectangle, in this case) in parallel with the radar area, and see if the player is within THAT.
  6. Case closed! I can play again, and it seems it was an MTA problem after all. http://bugs.mtasa.com/view.php?id=5148 I've taken the liberty of uploading the fixed DLL file to my website. http://robhol.net/mta/client.dll
  7. robhol

    MTA and SAMP

    There are, but there are kind of.. too many half-assed freeroam and RP servers. What we need is more servers with original scripts...
  8. Encrypt no, compile yes. Although since you're talking about compiling publically available scripts, there's not much point in it, is there.
  9. robhol

    The IP doesn`t appear!

    So... get it somewhere else. ipconfig for LAN ip, http://ip-adress.com or http://whatismyip.com for WAN ip.
  10. robhol

    norby89

    does not have a bucket.
  11. Aww.. this topic touches my heart. :') For the export issue, you will have access to another, neater form. Suppose you have declared and exported this function in a resource: function asd(foo, bar) end Assuming you've exported it correctly (and restarted the resource in which it's declared) you can call it from any other resource with exports.myResource:asd( "value of foo here" , "this would be the value of bar" ) The database file is called server/mods/deathmatch/registry.db and is standard SQLite. You can open it with any SQLite editor, for example this. As for your third question, it's pretty simple. I don't know of any Lua equivalent for "const", so.. just don't change the variable. IM_A_CONST = {100, 200, 300} If you haven't seen it already, I think you might find my scripting introduction helpful. http://robhol.net/guide/basics Edit: oh, I misunderstood. For intra-resource function calls, it really couldn't be simpler. Make sure your functions are not local, and you will be able to trigger them as if they were declared in the same file. Just call the function normally, you don't need call(), exports or events for that. If you need server-client communications, you must use events, though.
  12. When it says internal server error, it doesn't mean your server. It means Game-Monitor is noobing YET again.
  13. If you search for "IP" in the resource code, you might find something?
  14. How many times has this been up now? Use search...
  15. New error, new post. The same epically retarded error happens on a completely different OS. This time it's Win-7 Ultimate, x64. It was working for a while, and then bam. No more MTA. The error appeared suddenly yesterday. When running [MTA inst. dir]/mods/deathmatch/client.dll through dependency walker, I get the following output. Error: At least one required implicit or forwarded dependency was not found. Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module. Error: Modules with different CPU types were found. Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module. Irrklang.dll shows up as missing. I copied it from /MTA, and that error's gone at least. That leaves Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module. Error: Modules with different CPU types were found. Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module. I was hoping someone could learn something from this, as I'm on deep water here. As it's bitching about different CPU types, keep in mind that the error has happened on both 32 and 64-bit... I didn't install anything weird between the time where it was working and the time where the error appeared, but since Windows Update apparently didn't want to listen to me, it might have installed updates. I've searched for malware, without finding anything, same as for the last time. If you need more info, ask.
  16. Not necessarily.. what? If you start with a non-negative number, say, 5, you divide by 6. If you start with 0, you divide by 1. The only way in which you can have a dangerous division operator is if you start with -1, becoming 0. And that's unlikely, since you can't have died -1 times in a game.
  17. playerdeaths will never be 0 if he doesn't start out on a negative number (which is unlikely) since he increments it before any dangerous divisions.
  18. createExplosion! >:) OK, OK, maybe not. (Then again, maybe?) I guess there might be some effects you can use, and I suppose corona-type markers are always usable for some kind of cool stuff.
  19. robhol

    F11 map is invisible.

    There's a setting for map alpha (transparency/"visibility") in the MTA settings.. Have a look there?
  20. No you won't... /addaccount nick password
  21. That's just not how tonumber works. Tonumber returns the "numberized" value, it doesn't change the variable you put in.
  22. Released! See main post for details, links, and stuff.
  23. (Unless it's a bug) it says very clearly that your data files are modified. Remove any modifications to data files, redownload the data files, or just reinstall GTA.
×
×
  • Create New...